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

Function backslashes escaped when applying template from autoregistration actions

XMLWordPrintable

    • Team C
    • Sprint 90 (Jul 2022), Sprint 91 (Aug 2022), Sprint 92 (Sep 2022), Sprint 93 (Oct 2022), Sprint 94 (Nov 2022)
    • 0.25

      Steps to reproduce:

      1. Create template with some trigger having function expression containing backslashes, like:
        find(/host/sip.remote[5060],#3,"regexp","^OK\s+")<>0
        
      2. Make this template applied to hosts from autoregistration action (link template when host registers in Zabbix)
      3. Register new host susceptible to autoregistration applying this template

      Result:
      Host trigger expression will be correctly inherited from the template, but backslashes will be escaped, resulting in wrong expression like

      find(/host/sip.remote[5060],#3,"regexp","^OK\\s+")<>0
      

      Expected:
      No such escaping, expressions should be copied as is from templates.

            kprutkovs Konstantins Prutkovs
            Alex/AT Alexey Asemov
            Team C
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: