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

$1 in item names expanded incorrectly for item keys containing macros

    Details

      Description

      Suppose we have an item with name "echo $1" and the following item key:

      echo[{$MACRO}]
      

      Suppose also that the value of the macro is "this,is,a,list". Then, server will show item name as "echo this,is,a,list", whereas frontend will show it as "echo this".

      The probable reason is that the server correctly quotes item arguments when expanding macros, yielding the following item key:

      echo["this,is,a,list"]
      

      However, the frontend apparently yields the following key after macro expansion, which is not correct:

      echo[this,is,a,list]
      

      Therefore, the frontend side should be fixed.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                asaveljevs Aleksandrs Saveljevs
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: