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

Function macro resolution in calculated items and triggers removes backslash before quotation mark

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Won't fix
    • Icon: Trivial Trivial
    • None
    • 6.0.16, 6.4.1, 7.0.0alpha1
    • Server (S)
    • Sprint 100 (May 2023), Sprint 101 (Jun 2023), Sprint 102 (Jul 2023), Sprint 103 (Aug 2023), Sprint 104 (Sep 2023), Sprint 105 (Oct 2023)
    • 1

      Steps to reproduce:

      1. create discovery rule
      2. create calculated item or a trigger with LLD function macro
      3. use iregsub function macro with:
        • pattern
          .*
        • template (what to replace the match with)
          \"\a
      1. wait for discovery to take effect and create items

      Result:
      When creating an item with resolved macro function, the resolved function:

      • has value of
        "\a
      • instead of
        \"\a

            wiper Andris Zeila
            kprutkovs Konstantins Prutkovs
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: