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.

XMLWordPrintable

    • Sprint 15, Sprint 16
    • 0.5

      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.

            vjaceslavs Vjaceslavs Bogdanovs
            Miks.Kronkalns Miks Kronkalns
            Team C
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: