[ZBX-4573] API call to delete templates doesn't do anything Created: 2012 Jan 23  Updated: 2017 May 30  Resolved: 2012 Mar 14

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A)
Affects Version/s: 1.9.8 (beta)
Fix Version/s: None

Type: Incident report Priority: Critical
Reporter: Timo A. Hummel Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by ZBX-4574 ctemplate->unlink fails when targetid... Closed

 Description   

When attempting to use the template.delete call, the specified template(s) don't get deleted.

I tried to track the problem down, but the code is really hard to follow. So this bug serves as a host bug for all subsequent bugs I'll find.

Basically, the API call fails due to a rollback caused by invalid SQL statements.



 Comments   
Comment by Timo A. Hummel [ 2012 Jan 23 ]

This issue depends on ZBX-4574

Comment by Alexei Vladishev [ 2012 Jan 26 ]

Please post JSON request and response here.

Comment by Timo A. Hummel [ 2012 Jan 26 ]

Call:

{"jsonrpc":"2.0","id":"4f214b173915b","auth":"aabb913b0b0a31fd8abaca630b385610","method":"template.delete","params":["10001"]}

Response:

{"templateids":["10001"]}

The bug is described in ZBX-4574, with a possible fix.

Generated at Sat Apr 20 10:02:11 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.