Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-13556

Not possible to use '-' character in jsonpath expression

    Details

    • Team:
      Team A
    • Sprint:
      Sprint 30, Sprint 31
    • Story Points:
      0

      Description

      Create dependent item with following jsonpath expression

      $.header.Content-Type
      

      And receive such json through Zabbix Trapper

      {"header": {"Content-Type": "text/html; charset=UTF-8"}}
      

      Actual:

      item "Zabbix server:Set-Cookie" became not supported: Item preprocessing step #1 failed: cannot extract value from json by path "$.header.Content-Type": object not found starting with json path: "Content-Type"
      

      Expected:
      text/html; charset=UTF-8 is successfully extracted

      Patch attached, though should consider allowing even more symbols.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                martins-v Martins Valkovskis
                Reporter:
                vso Vladislavs Sokurenko
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: