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

Undefined index when using "expandComment" in trigger.get

    XMLWordPrintable

Details

    • Team B
    • Sprint 100 (May 2023), Sprint 101 (Jun 2023), Sprint 102 (Jul 2023)
    • 0.125

    Description

      Make an API call:

      {
         "jsonrpc": "2.0",
          "method": "trigger.get",
          "params": {
              "output": ["comments"],
              "expandComment": true
          },
          "auth": "{{auth}}",
          "id": 1
      }

      Result: Undefined array key (example from 7.0.0alpha1):

      [Wed May 17 13:38:25.607546 2023] [php:warn] [pid 1043] [client 10.0.XX.XX:XXXX] PHP Warning:  Undefined array key "expression" in /ui/include/classes/macros/CMacrosResolver.php on line 567

      Expected: No warning.

      Note: In version 4.0 this error is still present, but no warning is added to Apache error log.

      Attachments

        Activity

          People

            iivs Ivo Kurzemnieks
            vmurzins Valdis Murzins
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: