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

Item gets overwritten during configuration input if an item with the same key exists in import file

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 4.0.9, 4.2.3, 4.4.0alpha1
    • API (A)

      Problem description: If a configuration import file contains 2 (or more) items with the same key under the same host, such configuration file is successfully imported and the last item with the duplicate key overwrites the previous items with such key. A duplicate key validation error is expected in this case (same as it currently works for item prototypes).

      Steps to reproduce:

      1. Create a host with an item
      2. Export this host
      3. Delete or rename the Host that was just exported
      4. In the obtained configuration file copy-paste the item in <items> section and change the name of the new item entry (for example from Item_1 to Item_2).
      5. Navigate to Configuration => Hosts and import the previously modified configuration file.

      Result:
      The configuration file is successfully imported. The imported host contains only 1 of the items with duplicate keys (last in the file).

      Expected:
      A duplicate key validation error should be returned when attempting to import the configuration file.

            zabbix.dev Zabbix Development Team
            solonkins Sergejs Olonkins
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: