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

Details

    • Problem report
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.2.0alpha1
    • 5.2.0alpha2, 5.2 (plan)
    • API (A)
    • Team B
    • Sprint 67 (Aug 2020)
    • 0.5

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: