chronograf icon indicating copy to clipboard operation
chronograf copied to clipboard

[kapacitor] HTTP Post URL not properly handled

Open jackzampolin opened this issue 9 years ago • 3 comments

screenshot 2017-03-28 12 31 13

When creating a task in kapacitor that needs to post it's result, chronograf does not include the user input in the URL field when creating the task in kapacitor.

The task will always have .post(''):

var trigger = data
    |alert()
        .crit(lambda: "value" > crit)
        .stateChangesOnly()
        .message(message)
        .id(idVar)
        .idTag(idTag)
        .levelTag(levelTag)
        .messageField(messageField)
        .durationField(durationField)
        .post('')

jackzampolin avatar Mar 28 '17 19:03 jackzampolin

This bug applies to the SMTP alert config too. The email addresses that you enter are ignored.

The missing fields don't even make it into the HTTP PUT request, let alone the Kapacitor config.

Whenever you type in the relevant input elements you get this Javascript error:

Uncaught TypeError: Cannot read property 'alertProperty' of null
    at onChange (webpack:///./src/kapacitor/components/RuleMessageAlertConfig.js?:49:64)

Possibly related to this commit?

Tomcat-Engineering avatar Mar 29 '17 11:03 Tomcat-Engineering

Hey @Tomcat-Engineering and @jackzampolin , thanks for writing in. We'll take a look!

(also thanks for looking up that commit!)

goller avatar Mar 29 '17 18:03 goller

Check if this fixes #1156

nhaugo avatar Apr 04 '17 16:04 nhaugo