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

Not possible to use '-' character in jsonpath expression

XMLWordPrintable

    • Team A
    • Sprint 30, Sprint 31
    • 0

      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.

            martins-v Martins Valkovskis
            vso Vladislavs Sokurenko
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: