-
Problem report
-
Resolution: Workaround proposed
-
Trivial
-
None
-
7.0.15, 7.2.9, 7.4.1rc1, 8.0.0alpha1 (master)
Problem tag filter in user group configuration is not working correctly when adding 250 or more host groups.
Test case #1 - added tags and groups are not displayed in the multiselect, re-saving usergroup with a new tag will result in a runtime error in the log
Steps to reproduce:
Precondition: 250 or more host groups are previously created
- Log in as Super admin
- Open Users -> User groups -> Create user group
- Add a valid name
- Switch to Problem tag filter tab
- Select 250+ host groups using multi-select, add
- Click edit for one of the group
- Observe, that edit form doesn't have any data
- Save the user group
- Edit the user group -> Problem tag filter tab
- Edit any of the group
- Add new group, add tags
- Click add
Result: No host groups are displayed when editing, Unexpected server error appears when adding the tag, runtime error in the log:
Undefined array key "tags" [zabbix.php:17 -> require_once() -> ZBase->run() -> ZBase->processRequest() -> CController->run() -> CControllerUsergroupTagFilterList->doAction() -> CConfigFile->{closure}() in app/controllers/CControllerUsergroupTagFilterList.php:58] Undefined array key "tags" [zabbix.php:17 -> require_once() -> ZBase->run() -> ZBase->processRequest() -> ZBase->processResponseFinal() -> CView->getOutput() -> include() -> CPartial->getOutput() -> include() -> CConfigFile->{closure}() in app/partials/usergroup.tagfilters.php:32] Undefined array key "tags" [zabbix.php:17 -> require_once() -> ZBase->run() -> ZBase->processRequest() -> ZBase->processResponseFinal() -> CView->getOutput() -> include() -> CPartial->getOutput() -> include() -> CConfigFile->{closure}() in app/partials/usergroup.tagfilters.php:35] TypeError: key(): Argument #1 ($array) must be of type array, null given in /home/zabbix/workspace/7.0/ui/app/partials/usergroup.tagfilters.php:35 Stack trace: #0 /home/zabbix/workspace/7.0/ui/app/partials/usergroup.tagfilters.php(35): key() #1 /home/zabbix/workspace/7.0/ui/include/classes/mvc/CPartial.php(102): include('...') #2 /home/zabbix/workspace/7.0/ui/app/views/usergroup.tagfilter.list.php(26): CPartial->getOutput() #3 /home/zabbix/workspace/7.0/ui/include/classes/mvc/CView.php(128): include('...') #4 /home/zabbix/workspace/7.0/ui/include/classes/core/ZBase.php(726): CView->getOutput() #5 /home/zabbix/workspace/7.0/ui/include/classes/core/ZBase.php(641): ZBase->processResponseFinal() #6 /home/zabbix/workspace/7.0/ui/include/classes/core/ZBase.php(228): ZBase->processRequest() #7 /home/zabbix/workspace/7.0/ui/include/config.inc.php(20): ZBase->run() #8 /home/zabbix/workspace/7.0/ui/zabbix.php(17): require_once('...') #9 {main}
Test case #2 -> Page not found is displayed, when adding bigger amount of host groups in problem tag filter.
Steps to reproduce
Precondition: 500+ host groups previously created
- Log in as Super admin
- Open Users -> Usergroups -> Create user group
- Add a valid name
- Switch to Problem tag filter tab
- Select 500+ host groups using multi-select
- Save the user group
Result: Page not found is displayed
See video:
Expected result: problem tag filter should work as expected with higher amount of host groups