[ZBX-5643] API allow create circular dependencies on Trigger addDependencies() Created: 2012 Oct 02  Updated: 2017 May 30  Resolved: 2012 Oct 15

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A)
Affects Version/s: 2.0.2
Fix Version/s: 2.0.4rc1, 2.1.0

Type: Incident report Priority: Trivial
Reporter: Oleg Egorov (Inactive) Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: circular
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File bug.bmp    

 Description   

API Request:

[

{"triggerid":"13527","dependsOnTriggerid":"13528"}

,

{"triggerid":"13528","dependsOnTriggerid":"13527"}

]

Result on image



 Comments   
Comment by Toms (Inactive) [ 2012 Oct 05 ]

(1) SQL error if dependency added second time

oleg.egorov Issue duplicate in ZBX-3920

Comment by Toms (Inactive) [ 2012 Oct 08 ]

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

Comment by Eduards Samersovs (Inactive) [ 2012 Oct 10 ]

(2) SQL error is showen when if not existing trigger is passed. Will be good to fix.
[

{"triggerid": "13534", "dependsOnTriggerid": "13535900000000"}

]

"SQL statement execution has failed \"INSERT INTO trigger_depends (triggerid_down,triggerid_up,triggerdepid) VALUES ('135347','13535900000000','41')\"."

tomtom RESOLVED in r30817
Eduards CLOSED

Comment by Eduards Samersovs (Inactive) [ 2012 Oct 17 ]

Tested!

Comment by Toms (Inactive) [ 2012 Oct 22 ]

Fixed in 2.0.4rc1 r31001, 2.1.0 r31003

Generated at Fri Apr 19 17:54:30 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.