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

JSON "null" matches empty string in LLD filters

    XMLWordPrintable

    Details

    • Team:
      Team C
    • Sprint:
      Sprint 58 (Nov 2019)
    • Story Points:
      0.125

      Description

      Suppose we send a JSON like the following to Zabbix server:

      {
          "data": [
              {
                  "{#MACRO}": "macro",
                  "{#FILTER}": null
              }
          ]
      }
      

      If we filter by {#FILTER}, then "null" will be processed like an empty string and will match regular expression "^$". Instead, the filter should fail.

      The reason for the behavior above is that our JSON parser currently parses JSON null as an empty string.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              atumilovics Andrejs Tumilovics
              Reporter:
              asaveljevs Aleksandrs Saveljevs
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: