Frontend trigger expression parser doesn't like macro in simple check item

XMLWordPrintable

    • Type: Incident report
    • Resolution: Duplicate
    • Priority: Minor
    • None
    • Affects Version/s: 1.8.13
    • Component/s: Frontend (F)
    • None

      1. define host-level macro: {$PORT}
      2. create simple check item with key: http,{$PORT}
      3. create trigger referencing this item: {host:http,{$PORT}.max(#6)}=0, try to save it and get the error:
      ERROR: Cannot add trigger
      Incorrect item key "http,{$PORT" is used in expression. Incorrect simple check parameter.
      Check expression part starting from "{test:http,{$PORT}.max(#6)}=0".

      if I remove the macro from item key, create the trigger, and put macro back in, server evaluates trigger expression properly. thus, it's an error in frontend expression parser.

            Assignee:
            Unassigned
            Reporter:
            alix
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: