-
Type:
Problem report
-
Resolution: Unresolved
-
Priority:
Trivial
-
None
-
Affects Version/s: 7.0.33rc1, 7.4.17rc1, 8.0.1rc1, 8.2.0alpha1
-
Component/s: Frontend (F)
-
None
Steps to reproduce:
- Create host "test" with Zabbix trapper item "trap" and trigger with expression:
last(/test/trap)="{TRIGGER.VALUE}" - Click "Expression constructor", then "Test"
Result: "Unexpected server error." is shown.
Runtime error:
TypeError: Cannot access offset of type array on array in /home/zabbix/workspace/7.0/ui/app/controllers/CControllerPopupTestTriggerExpr.php:80
Stack trace:
#0 /home/zabbix/workspace/7.0/ui/include/classes/mvc/CController.php(76): CControllerPopupTestTriggerExpr->init()
#1 /home/zabbix/workspace/7.0/ui/include/classes/core/ZBase.php(606): CController->__construct()
#2 /home/zabbix/workspace/7.0/ui/include/classes/core/ZBase.php(228): ZBase->processRequest()
#3 /home/zabbix/workspace/7.0/ui/include/config.inc.php(20): ZBase->run()
#4 /home/zabbix/workspace/7.0/ui/zabbix.php(17): require_once('...')
#5 {main}
Expected: Test popup should be opened without errors, or the problem should be handled properly with an error message shown.
Notes:
- Without quotes the Test popup is opened without errors. e.g.
last(/test/aaa)={TRIGGER.VALUE} - On 6.0 the issue doesn't appear