[ZBX-4288] host macros are not deleted from the database when host is deleted Created: 2011 Oct 27  Updated: 2017 May 30  Resolved: 2011 Nov 25

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

Type: Incident report Priority: Blocker
Reporter: richlv Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: usermacros
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by ZBX-4383 'host.delete' method in API v. 1.8.8 ... Closed

 Description   

create a host or template with usermacro. delete this host. usermacro is not deleted.

a unittest for this is required (both for template & host)



 Comments   
Comment by Pavels Jelisejevs (Inactive) [ 2011 Nov 22 ]

RESOLVED for 1.8 in branches/dev/ZBX-4288.

It works correctly in the trunk, but I'll add a unit test to cover host deletion.

Comment by Pavels Jelisejevs (Inactive) [ 2011 Nov 22 ]

Added tests to check this behavior in the trunk. Available in branches/dev/ZBX-4288-trunk. RESOLVED.

Comment by Igor Danoshaites (Inactive) [ 2011 Nov 23 ]

In trunk in dev branch "ZBX-4288-trunk" it is working fine for both hosts and templates.

In 1.8 dev branch "ZBX-4288" it is working fine for both host and template.

Comment by Igor Danoshaites (Inactive) [ 2011 Nov 24 ]

Tested.

Comment by Pavels Jelisejevs (Inactive) [ 2011 Nov 24 ]

Merged to trunk revision r23510 and 1.8 revision r23507. CLOSED.

Generated at Fri Mar 29 08:03:00 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.