[ZBX-5466] Web interface incorrectly clone template with dependencies from triggers Created: 2012 Aug 17  Updated: 2017 May 30  Resolved: 2012 Aug 30

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 2.0.3, 2.1.0
Fix Version/s: 2.0.3rc1, 2.1.0

Type: Incident report Priority: Major
Reporter: Alexey Pustovalov Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: dependencies, triggers
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: XML File 6 template export.xml    
Issue Links:
Duplicate

 Description   

Web interface incorrectly clone template A with dependencies from triggers which inherited from templates connected to template A.
For example:
We have template A and template B.
Template A connected to template B.
Trigger A has dependency from trigger AB which inherited from template B.

Well when we try full clone template A, trigger AC has dependency to trigger AB from template A.



 Comments   
Comment by Toms (Inactive) [ 2012 Aug 21 ]

Export of 6 linked templates with some items and triggers

Comment by Toms (Inactive) [ 2012 Aug 21 ]

(1) Create host group and import data from "6 template export.xml" file.
Create a host "H1" in this group.
Try to link Template "T3" to host "H1".

You receive warning with missing template "T3" name in first parenthesis:
Trigger in template "" has dependency with trigger in template "T6". [CHost.create -> CHost.massAdd -> CHostGeneral.massAdd -> CHostGeneral.link]

<Toms> RESOLVED in r29680

Comment by richlv [ 2012 Aug 21 ]

(2) 29681 has "dependencies is"

<Toms> I haven't finished this issue

<richlv> well, if i can't get a response on irc, i have to report issues somewhere, otherwise they tend to be ignored

<Toms> RESOLVED

Comment by Toms (Inactive) [ 2012 Aug 24 ]

Fixed in dev. branch: svn://svn.zabbix.com/branches/dev/ZBX-4187

Comment by Alexey Fukalov [ 2012 Aug 30 ]

(1)
Triggers with web items should be copied too.

<Toms> RESOLVED in r29955

<Vedmak> CLOSED

Comment by Alexey Fukalov [ 2012 Aug 30 ]

(2) If we copy trigger to host and that host doesn't have dependency trigger, copy fails.

<Toms> RESOLVED in r29955

<Vedmak> CLOSED

Comment by Alexey Fukalov [ 2012 Aug 30 ]

(3)
Cannot copy trigger that has dependency to trigger with items from different hosts.

<Toms> RESOLVED in r29977

<Vedmak> CLOSED

Comment by Toms (Inactive) [ 2012 Aug 31 ]

Resolved in 2.0.3rc1 r30009 and 2.1.0 r30010

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