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

    • Type: Problem report
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.2.0alpha1
    • Fix Version/s: 5.2.0alpha2, 5.2 (plan)
    • Component/s: API (A)
    • Labels:
    • Team:
      Team B
    • Sprint:
      Sprint 67 (Aug 2020)
    • Story Points:
      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

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

                Dates

                Created:
                Updated:
                Resolved: