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

Unquoted context macros in trigger functions might fail expression evaluation

XMLWordPrintable

    • Team A
    • Sprint 104 (Sep 2023), Sprint 105 (Oct 2023)
    • 1

      Steps to reproduce:
      1. Create host Trapper with:
      1.1 trapper item trap
      1.2 trigger last(/Trapper/trap, {$H:a,b}) - last(/Trapper/trap) = 0
      1.3 user macro {$H:a,b} = #2
      2. Start server
      3. Send two values to trap item

      Result:
      Trigger has failed with an error: Cannot evaluate function last(/Trapper/trap,{$H:a,b}): invalid second parameter.

      Expected:
      Trigger worked without an error.

      Note that expression last(/Trapper/trap, {$H:a,b}) works in calculated items and also works in trigger expression if the macro is quoted last(/Trapper/trap, "{$H:a,b}")

            wiper Andris Zeila
            wiper Andris Zeila
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: