Context macros are not expanded properly when no value defined

XMLWordPrintable

    • Type: Problem report
    • Resolution: Duplicate
    • Priority: Major
    • None
    • Affects Version/s: 3.4.2
    • Component/s: 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

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

              Created:
              Updated:
              Resolved: