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

Valid macros are not resolved if text contains invalid macros at the beginning.

    Details

    • Team:
      Team C
    • Sprint:
      Sprint 15, Sprint 16
    • Story Points:
      0.5

      Description

      If text or label contains syntax error, it sometimes breaks the resolution of macros in text/label. For example, if text is {h1:} {h1:trap.last()}, the valid macros is not resolved. If the sequence is opposite {h1:trap.last()} {h1:}, the result is correct . Putting the erroneous macros between two valid macros {h1:trap.last()} {h1:} {h1:trap.last()} also makes no problem.

      Steps to reproduce:
      1) create a map, add to icons and link them together.
      2) type a text "{h1:} {h1:trap.last()}" in the label field (replace host name and item to your own).
      3) Observe that the valid macros is not resolved (make sure that "Expand macros" is enabled).

      Expected: Valid macros should be resolved, invalid macros must be considered as a simple text.

      Observed it in 2.4 and 3.4. Most likely all versions between them are affected.

        Attachments

          Activity

            People

            • Assignee:
              vjaceslavs Vjaceslavs Bogdanovs
              Reporter:
              Miks.Kronkalns Miks Kronkalns
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: