Not escaping JSON characters on custom payload in webhooks automation

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • 4.2.0
    • Affects Version/s: 4.1.0
    • Component/s: Automation
    • None
    • Severity 3 - Minor
    • 0

      When:

      1. adding a webhook with "comment added" trigger,
      2. using a variable ${comment} on a custom payload, like: 
        {{{ "message": "日本語のキーボード", "variable": "${comment}" }}}
      3. I add a comment with the following text: { "message": "日本語のキーボード", "variable": "日本語のキーボード" }

      Then: 

      1. A webhook is called with an invalid payload, like this:

      { "message": "日本語のキーボード", "variable": "

      { "message": "日本語のキーボード", "variable": "h1. 日本語のキーボード  " }

      "
      }

            Assignee:
            Kunal Kanojia
            Reporter:
            Kunal Kanojia
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: