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

Context macros are not expanded properly when no value defined

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 3.4.2
    • Server (S)
    • Sprint 19

      Steps to reproduce:

      • Create item, external check with key, similar to this
        script.sh[http://localhost/{$TEST_PATH:"hello"}]
        

      • create script.sh and put it to externalscripts folder:
        #!/bin/bash
        echo $1
        

      Do not define {$TEST_PATH} or {$TEST_PATH:"hello"} macros at all.

      Result:
      Value in latest value:

      http://localhost/{:"hello"}
      

      Expected:
      Value in latest value:

      http://localhost/
      

        1. 1.png
          1.png
          32 kB
        2. 2.png
          2.png
          10 kB

            Unassigned Unassigned
            vzhuravlev Vitaly Zhuravlev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: