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

Can't use full JSONPath functionality

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Duplicate
    • Icon: Trivial Trivial
    • None
    • 4.2.5
    • Frontend (F)

      Steps to reproduce:

      1. Have a discovery rule

      1. Create a item prototype, like this:
      2. This item prototype have Preprocessing step like this :
        1. In fact, have also test with theses paths, without success
          1. $.[?(@.vmdisplayname == "HIDDENINFO")].state
          2. $.[?(@.vmdisplayname=="HIDDENINFO")].state
          3. $..[?(@.vmdisplayname == "HIDDENINFO")].state
          4. $..[?(@.vmdisplayname =~ "HIDDENINFO")].state
      3. Test with item preprocessing tester and theses values below, ALL work correctly and return good result.
        1. [
          {
          "jobsessionuid": "urn:veeam:BackupJobSession:5d7bb890-4d97-44c1-a4cc-42dc6c24071f",
          "creationtimeutc": "2019-08-22T20:08:57Z",
          "endtimeutc": "2019-08-22T20:11:41Z",
          "state": "Completed",
          "result": "Success",
          "reason": "",
          "totalsize": 1073741824000,
          "vmuid": "urn:VMware:Vm:dcb66bd9-a188-47f1-8742-d2f5737e02ac.vm-99",
          "vmdisplayname": "HIDDENINFO",
          "name": "HIDDENINFO@2019-08-22 20:08:57",
          "uid": "urn:veeam:BackupTaskSession:30335919-136f-4743-a5d9-100013a11c4f",
          "href": "https://veeam:9398/api/backupTaskSessions/30335919-136f-4743-a5d9-100013a11c4f?format=Entity",
          "type": "BackupTaskSession"
          },
          {
          "jobsessionuid": "urn:veeam:BackupJobSession:5d7bb890-4d97-44c1-a4cc-42dc6c24071f",
          "creationtimeutc": "2019-08-22T20:08:57Z",
          "endtimeutc": "2019-08-22T20:11:41Z",
          "state": "Completed",
          "result": "Success",
          "reason": "",
          "totalsize": 1073741824000,
          "vmuid": "urn:VMware:Vm:dcb66bd9-a188-47f1-8742-d2f5737e02ac.vm-99",
          "vmdisplayname": "HIDDENINFO2",
          "name": "HIDDENINFO@2019-08-22 20:08:57",
          "uid": "urn:veeam:BackupTaskSession:30335919-136f-4743-a5d9-100013a11c4f",
          "href": "https://veeam:9398/api/backupTaskSessions/30335919-136f-4743-a5d9-100013a11c4f?format=Entity",
          "type": "BackupTaskSession"
          }
          ]

      Result:
      In "production" mode, with the SAME JSON array value, that fail :
      Expected:
      Same result of Test preprocessing :

       

      Best regards,

        1. image-2019-08-23-16-53-00-552.png
          10 kB
          CHAVIGNY
        2. image-2019-08-23-16-54-21-451.png
          18 kB
          CHAVIGNY
        3. image-2019-08-23-16-57-05-294.png
          13 kB
          CHAVIGNY
        4. image-2019-08-23-17-09-16-344.png
          15 kB
          CHAVIGNY
        5. image-2019-08-23-17-09-49-522.png
          15 kB
          CHAVIGNY
        6. image-2019-08-23-17-10-49-337.png
          11 kB
          CHAVIGNY
        7. image-2019-08-23-17-16-31-331.png
          16 kB
          CHAVIGNY

            mbuhholcs DaneT
            Flamme_2 CHAVIGNY
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: