XML export/import and certain characters

XMLWordPrintable

    • Type: Incident report
    • Resolution: Fixed
    • Priority: Major
    • 1.4.3
    • Affects Version/s: 1.4.3
    • Component/s: Frontend (F)
    • None

      Hi

      under certain conditions the export feature produces invalid XML. This happens for instance when a trigger contains a '<' (less than) comparison. The exported XML looks like this which is invalid. In fact, it cannot be re-imported.

      <trigger>
      <description>

      {HOSTNAME} was rebooted</description>
      <expression>{{HOSTNAME}

      :sysUpTime.last(0)}<300</expression>
      </trigger>

      The correct method is to replace '<' with '<' as shown below. On import this gets replaced correctly.

      <trigger>
      <description>

      {HOSTNAME} was rebooted</description>
      <expression>{{HOSTNAME}

      :sysUpTime.last(0)}<300</expression>
      </trigger>

      http://www.zabbix.com/forum/showthread.php?t=7666

            Assignee:
            Alexei Vladishev
            Reporter:
            Alexei Vladishev
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: