-
Problem report
-
Resolution: Fixed
-
Trivial
-
4.0.24, 5.0.3
-
None
-
Ubuntu 20.0.4 LTS
Php 7.4.3
Apache 2.4.41
-
Sprint 68 (Sep 2020), Sprint 69 (Oct 2020)
-
0.125
Steps to reproduce:
- go to triggers list and check one or more trigger
- go to massupdate
- change severity
- save
Result:
The web page go to 500 error
Form data:
sid: bd8886f71630e3e7 form_refresh: 2 hostid: 0 action: trigger.massupdate g_triggerid[17309]: 17309 g_triggerid[17310]: 17310 visible[priority]: 1 priority: 4 massupdate: Update
Apache error log:
[Fri Aug 28 14:26:30.718198 2020] [php7:error] [pid 914720] [client 10.168.0.1:43150] PHP Fatal error: Uncaught TypeError: Argument 2 passed to CTriggerGeneral::updateReal() must be of the type array, null given, called in /usr/share/zabbix/include/classes/api/services/CTrigger.php on line 582 and defined in /usr/share/zabbix/include/classes/api/services/CTriggerGeneral.php:1348\nStack trace:\n#0 /usr/share/zabbix/include/classes/api/services/CTrigger.php(582): CTriggerGeneral->updateReal()\n#1 /usr/share/zabbix/include/classes/api/clients/CLocalApiClient.php(123): CTrigger->update()\n#2 /usr/share/zabbix/include/classes/api/wrappers/CFrontendApiWrapper.php(97): CLocalApiClient->callMethod()\n#3 /usr/share/zabbix/include/classes/api/wrappers/CApiWrapper.php(94): CFrontendApiWrapper->callClientMethod()\n#4 /usr/share/zabbix/include/classes/api/wrappers/CFrontendApiWrapper.php(63): CApiWrapper->callMethod()\n#5 /usr/share/zabbix/include/classes/api/wrappers/CApiWrapper.php(82): CFrontendApiWrapper->callMethod()\n#6 /usr/share/zabbix/triggers.php(512): CApiWrapper->__call()\n#7 {main}\n thrown in /usr/share/zabbix/include/classes/api/services/CTriggerGeneral.php on line 1348, referer: http://10.168.0.100/zabbix/triggers.php