-
Problem report
-
Resolution: Unresolved
-
Trivial
-
7.0.0, 7.2.0alpha1
-
Sprint candidates
Some widgets ("Action log", "Host availability") go into an infinite loading when accessed with an Admin User without User group, and an error is appeared in the log file.
Steps to reproduce:
1. Create admin user without user group
2. Login as admin user
3. Create dashboard with Action log or Host availability
Result:
1. Error in logs for Action log widget:
Undefined array key "select" [zabbix.php:17 -> require_once() -> ZBase->run() -> ZBase->processRequest() -> CController->run() -> Widgets\ActionLog\Actions\WidgetView->doAction() -> CApiWrapper->__call() -> CFrontendApiWrapper->callMethod() -> CApiWrapper->callMethod() -> CFrontendApiWrapper->callClientMethod() -> CLocalApiClient->callMethod() -> CAlert->get() -> CAlert->createSelectQueryParts() -> CAlert->applyQueryOutputOptions() -> CApiService->unsetNclobFieldsFromOutput() -> CApiService::dbDistinct() -> CConfigFile->{closure}() in include/classes/api/CApiService.php:420] TypeError: preg_grep(): Argument #2 ($array) must be of type array, null given in /home/zabbix/workspace/master/ui/include/classes/api/CApiService.php:420 Stack trace: #0 /home/zabbix/workspace/master/ui/include/classes/api/CApiService.php(420): preg_grep() #1 /home/zabbix/workspace/master/ui/include/classes/api/CApiService.php(567): CApiService::dbDistinct() #2 /home/zabbix/workspace/master/ui/include/classes/api/services/CAlert.php(349): CApiService->unsetNclobFieldsFromOutput() #3 /home/zabbix/workspace/master/ui/include/classes/api/services/CAlert.php(169): CAlert->applyQueryOutputOptions() #4 /home/zabbix/workspace/master/ui/include/classes/api/services/CAlert.php(89): CAlert->createSelectQueryParts() #5 /home/zabbix/workspace/master/ui/include/classes/api/clients/CLocalApiClient.php(126): CAlert->get() #6 /home/zabbix/workspace/master/ui/include/classes/api/wrappers/CFrontendApiWrapper.php(94): CLocalApiClient->callMethod() #7 /home/zabbix/workspace/master/ui/include/classes/api/wrappers/CApiWrapper.php(89): CFrontendApiWrapper->callClientMethod() #8 /home/zabbix/workspace/master/ui/include/classes/api/wrappers/CFrontendApiWrapper.php(58): CApiWrapper->callMethod() #9 /home/zabbix/workspace/master/ui/include/classes/api/wrappers/CApiWrapper.php(77): CFrontendApiWrapper->callMethod() #10 /home/zabbix/workspace/master/ui/widgets/actionlog/actions/WidgetView.php(104): CApiWrapper->__call() #11 /home/zabbix/workspace/master/ui/include/classes/mvc/CController.php(471): Widgets\ActionLog\Actions\WidgetView->doAction() #12 /home/zabbix/workspace/master/ui/include/classes/core/ZBase.php(642): CController->run() #13 /home/zabbix/workspace/master/ui/include/classes/core/ZBase.php(228): ZBase->processRequest() #14 /home/zabbix/workspace/master/ui/include/config.inc.php(20): ZBase->run() #15 /home/zabbix/workspace/master/ui/zabbix.php(17): require_once('...') #16 {main}
2. Error in logs for Host availability widget:
TypeError: array_column(): Argument #1 ($array) must be of type array, string given in /home/zabbix/workspace/ZBX-24651-7.0/ui/widgets/hostavail/actions/WidgetView.php:78
Stack trace:
#0 /home/zabbix/workspace/ZBX-24651-7.0/ui/widgets/hostavail/actions/WidgetView.php(78): array_column()
#1 /home/zabbix/workspace/ZBX-24651-7.0/ui/include/classes/mvc/CController.php(471): Widgets\HostAvail\Actions\WidgetView->doAction()
#2 /home/zabbix/workspace/ZBX-24651-7.0/ui/include/classes/core/ZBase.php(640): CController->run()
#3 /home/zabbix/workspace/ZBX-24651-7.0/ui/include/classes/core/ZBase.php(226): ZBase->processRequest()
#4 /home/zabbix/workspace/ZBX-24651-7.0/ui/include/config.inc.php(20): ZBase->run()
#5 /home/zabbix/workspace/ZBX-24651-7.0/ui/zabbix.php(17): require_once('...')
#6 {main}
Expected:
No errors expected.
- part of
-
ZBX-24793 Incorrect behavior of a user with admin permissions and without user groups
- IN MANUAL TESTING