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

Import creates a new trigger instead of updating existing one

XMLWordPrintable

    • Team B
    • Sprint 67 (Aug 2020)
    • 0.5

      Steps to reproduce:
      1. Create a host, item and trigger.
      2. Set trigger expression so that it contains few empty lines. For example:

      {export_host1:export_item1.last()}=0 or
      
      {export_host1:export_item1.last()}=1 or
      
      {export_host1:export_item1.last()}=2
      
      

      3. Export it any format.
      4. Try to import it back again.

      Result:
      Import creates a new trigger, because of the line endings.

      Expected:
      It should update the existing trigger.

      The problem is that CImportDataNormalizer::normalizeStrings is not recursive.

            iivs Ivo Kurzemnieks
            iivs Ivo Kurzemnieks
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: