[ZBX-3753] "Remove" button is wrongly availabe for host interfaces. Some rare cases. Created: 2011 Apr 26  Updated: 2017 May 30  Resolved: 2011 Oct 21

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.9.4 (alpha)
Fix Version/s: 1.9.7 (beta), 2.0.0

Type: Incident report Priority: Blocker
Reporter: Oleksii Zagorskyi Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: hostinterfaces, usability
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

latest trunk rev 19182



 Description   

When some item has some interface selected in its settings, then button "Remove" is grayed out and it's right.
But when interface used in the single Discovery rule, then button "Remove" is still wrongly available.

When you try to remove this interface - tremendous error appeared:

Error in query [DELETE FROM interface WHERE (interfaceid IN ('30279')) ] [Cannot delete or update a parent row: a foreign key constraint fails (`zabbix`.`items`, CONSTRAINT `c_items_4` FOREIGN KEY (`interfaceid`) REFERENCES `interface` (`interfaceid`))]
DBEXECUTE_ERROR [CHost.update -> CHostInterface.delete -> DB.delete]



 Comments   
Comment by richlv [ 2011 Jun 01 ]

still reproducible in trunk rev 19930

Comment by Alexander Vladishev [ 2011 Oct 20 ]

Similar issue ZBX-3895

Comment by Alexey Fukalov [ 2011 Oct 20 ]

dev branch: svn://svn.zabbix.com/branches/dev/ZBX-3753

Comment by Oleksii Zagorskyi [ 2011 Oct 20 ]

Dev branch tested. Works as expected.

Comment by Oleksii Zagorskyi [ 2011 Oct 21 ]

(1) Bad thing that it's hard to distinguish the current type of interface which is grayed out.

<Vedmak> RESOLVED made disabled buttons be less grayed out.

<zalex> now is better, but I could not to say that excellent And I have no more ideas how that could be improved

<asaveljevs> CLOSED

Comment by Aleksandrs Saveljevs [ 2011 Oct 21 ]

(2) Not sure what needs to be done to get that error in host configuration, but it is possible:

Undefined index: items [include/views/configuration.host.edit.php:94]
Undefined index: items [include/views/configuration.host.edit.php:96]
Invalid argument supplied for foreach() [include/views/configuration.host.edit.php:96]

<Vedmak> RESOLVED

<asaveljevs> CLOSED

Comment by Alexey Fukalov [ 2011 Oct 24 ]

svn://svn.zabbix.com/trunk 22620

Generated at Wed Jul 16 11:26:35 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.