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

When replacing user macros in item testing the '\' is escaped

XMLWordPrintable

    • Sprint 96 (Jan 2023), Sprint 97 (Feb 2023), Sprint 98 (Mar 2023)
    • 1

      Steps to reproduce:

      • Import the host zbx_calculated_item.yaml
      • Open the calculated item from the imported host and press test button
      • Press button "Get value and test"

      Result: with VAR1 value \x server receives:

      count(//trap[1], #10, "eq", "\\x") and count(//trap[1], #10, "eq", "\\x")
      

      Note: in this case that happens even for non macro parameters.

      Expected:

      count(//trap[1], #10, "eq", "\x") and count(//trap[1], #10, "eq", "\x")
      

            Miks.Kronkalns Miks Kronkalns
            kseve Kirils Seve
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: