-
Problem report
-
Resolution: Fixed
-
Trivial
-
6.0.27rc1, 6.4.12rc1, 7.0.0beta2
-
S24-W34/35
-
0.25
Steps to reproduce:
- Create item with tag value "],*,a[x=" 1
- Create graph
- Go to Monitoring -> Hosts -> select Graphs
- Apply subfilter by tag value
- Try unselect tag value in subfilter
Result:
blank page
PHP runtime error
TypeError: array_flip(): Argument #1 ($array) must be of type array, string given in /home/natalja/workspace/master/ui/app/controllers/CControllerCharts.php:204 Stack trace: #0 /home/natalja/workspace/master/ui/app/controllers/CControllerCharts.php(204): array_flip() #1 /home/natalja/workspace/master/ui/app/controllers/CControllerChartsView.php(154): CControllerCharts::getSubfilterFields() #2 /home/natalja/workspace/master/ui/include/classes/mvc/CController.php(474): CControllerChartsView->doAction() #3 /home/natalja/workspace/master/ui/include/classes/core/ZBase.php(635): CController->run() #4 /home/natalja/workspace/master/ui/include/classes/core/ZBase.php(233): ZBase->processRequest() #5 /home/natalja/workspace/master/ui/include/config.inc.php(25): ZBase->run() #6 /home/natalja/workspace/master/ui/zabbix.php(22): require_once('...') #7 {main}
If tag value contains single/double quotes or slashes, js console error occurs:
zabbix.php?action=charts.view&from=now-1h&to=now&filter_hostids%5B%5D=10594&filter_name=&filter_show=1&subfilter_tags%5Bone%5D%5B%5D=%5C%2F&subfilter_set=1:112 Uncaught TypeError: Cannot read properties of null (reading 'remove') at Object.unsetSubfilter (zabbix.php?action=charts.view&from=now-1h&to=now&filter_hostids%5B%5D=10594&filter_name=&filter_show=1&subfilter_tags%5Bone%5D%5B%5D=%5C%2F&subfilter_set=1:112:82) at HTMLFormElement.<anonymous> (zabbix.php?action=charts.view&from=now-1h&to=now&filter_hostids%5B%5D=10594&filter_name=&filter_show=1&subfilter_tags%5Bone%5D%5B%5D=%5C%2F&subfilter_set=1:62:11)
- part of
-
ZBX-24047 Can't update value mapping if mapping name contains quotes
- READY TO DEVELOP