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

XMLWordPrintable

    • Type: Problem report
    • Resolution: Won't fix
    • Priority: Trivial
    • None
    • Affects Version/s: 6.0.16, 6.4.1, 7.0.0alpha1
    • Component/s: 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

            Assignee:
            Andris Zeila
            Reporter:
            Konstantins Prutkovs (Inactive)
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: