-
Problem report
-
Resolution: Unresolved
-
Trivial
-
None
-
4.0.9, 4.2.3, 4.4.0alpha1
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:
- Create a host with an item
- Export this host
- Delete or rename the Host that was just exported
- 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).
- 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.