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

Test item cannot find macro if specified in quotes but on server it works

XMLWordPrintable

    • Team C
    • Sprint 106 (Nov 2023), Sprint 107 (Dec 2023), Sprint candidates, S2401
    • 1

      As a part of fixes done in ZBX-21898 (notably, escaping added for "\" in history function parameters), the following frontend issue was found:
       
      Add calculated item to host (note backslash in the string parameter needs to be escaped):

      count(/Zabbix server/trap1, #1, "eq", "{$MACRO: \"static\\text\"}")
      

      Add macro to host with some 123 value

      {$MACRO: "static\text"}
      

      Now open Item test dialog and see that frontend does not propose value for it from existing macros, just

      {$MACRO: \"static\\text\"} = {$MACRO: \"static\\text\"}

      is shown in the Macros list.

      Expected: {$MACRO: "static\text"} = 123 to be listed in Item test dialog.

            jfreibergs Janis Freibergs
            kprutkovs Konstantins Prutkovs
            Team C
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: