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

Details

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

    Description

      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/
      

      Attachments

        1. 1.png
          32 kB
          Vitaly Zhuravlev
        2. 2.png
          10 kB
          Vitaly Zhuravlev

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: