[ZBX-2975] cannot import two linked templates Created: 2010 Sep 03  Updated: 2017 May 30  Resolved: 2012 Jul 06

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.8.3
Fix Version/s: 2.0.0

Type: Incident report Priority: Major
Reporter: Aleksandrs Saveljevs Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: templates, xml
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File no-permission.png    
Issue Links:
Duplicate
is duplicated by ZBX-3046 import does not accept template order... Closed

 Description   

Create two empty templates, A and B, and link B to A. Importing both templates simultaneously gives no-permission.png.

Importing one after another is OK. The same scenario, but with A linked to B, is also OK.



 Comments   
Comment by richlv [ 2010 Sep 03 ]

most likely the ordering in the xml matters. if the highest level template is first, it's all good, otherwise it fails.
import should be smart enough to sort these things and import them in the correct order.
this could probably still be broken... have two templates whose triggers depend on each other, export, try to import. if that fails, import probably should be smart enough to import triggers first, set dependencies later (but maybe it already does that - can't test, trunk is quite broken currently )

Comment by Alexei Vladishev [ 2011 Aug 29 ]

There are number of issues regarding importing two related objects in one XML file.

Comment by Alexey Fukalov [ 2012 Jul 06 ]

Fixed for 2.0 in ZBX-4870

Generated at Thu Mar 28 15:02:02 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.