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

Remove redundant escaping in XML data of HTTP agent POST request

XMLWordPrintable

    • Sprint 80 (Sep 2021), Sprint 81 (Oct 2021)
    • 0.2

      Steps to reproduce:

      1. Define host macro {$M01}: 
        <foo></bar>
      1. Create HTTP agent item:
        Request type: POST
        Request body type: XML data
        Request body: 
        <data><macro>{$M01}</macro><![CDATA[{$M01}<foo></bar>]]></data>
      1. Execute item check

      Result:

      <data><macro>&amp;lt;foo&amp;gt;&amp;lt;/bar&amp;gt;</macro><![CDATA[<foo></bar><foo></bar>]]></data>

      Expected:

      <data><macro>&lt;foo&gt;&lt;/bar&gt;</macro><![CDATA[<foo></bar><foo></bar>]]></data>

            asestakovs Aleksejs Sestakovs
            asestakovs Aleksejs Sestakovs
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: