[ZBX-1040] Mass update on triggers with empty dependency criteria throws error Created: 2009 Sep 17  Updated: 2017 May 30  Resolved: 2009 Oct 06

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.6.5, 1.6.6
Fix Version/s: None

Type: Incident report Priority: Major
Reporter: Christoph Haas Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Zabbix 1.6.5, Debian GNU/Linux 5.0 ("Lenny"), AMD64, Linux kernel 2.6.26, sunshine outside, 17°C



 Description   

To reproduce:

  • Go to Configuration/Triggers
  • Select multiple triggers
  • Click on "triggers massupdate"
  • Click on "trigger dependencies", but don't choose any dependencies here
  • Click on "Save"

Here I get these messages in a red top window:

  • Undefined index: dependencies[/usr/share/zabbix/triggers.php:128]
  • Invalid argument supplied for foreach()[/usr/share/zabbix/include/triggers.inc.php:829]
  • Invalid argument supplied for foreach()[/usr/share/zabbix/include/triggers.inc.php:1516]
  • Trigger 'Sufficient disk space on /' updated for host 'mail'
  • Invalid argument supplied for foreach()[/usr/share/zabbix/include/triggers.inc.php:1516]
  • Trigger 'Sufficient disk space on /' updated for host 'Template_IR_Mailserver'
  • Undefined index: dependencies[/usr/share/zabbix/triggers.php:128]
  • Invalid argument supplied for foreach()[/usr/share/zabbix/include/triggers.inc.php:829]
  • Invalid argument supplied for foreach()[/usr/share/zabbix/include/triggers.inc.php:1516]
  • Trigger 'Sufficient disk space on /var/vmail' updated for host 'mail'
  • Invalid argument supplied for foreach()[/usr/share/zabbix/include/triggers.inc.php:1516]
  • Trigger 'Sufficient disk space on /var/vmail' updated for host 'Template_IR_Mailserver'

However the dependencies are removed. So the function works.



 Comments   
Comment by Alexey Fukalov [ 2009 Oct 06 ]

fixed in 8043 1.6 branch

Comment by richlv [ 2009 Oct 06 ]

confirming the fix in 1.6 branch, rev 8043

Generated at Fri Mar 29 02:56:09 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.