-
Problem report
-
Resolution: Fixed
-
Major
-
7.0.0, 7.2.0alpha1 (master)
-
S24-W28/29, S24-W30/31, S24-W32/33, S24-W34/35, S24-W36/37
-
0.25
Steps to reproduce:
- Create a user with admin permissions without a user group;
- Log in with the user with admin permissions;
- Open the Notifications page.
Result:
Empty Notifications page and an error in logs appears.
Undefined array key "select" [report4.php:202 -> 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/report4.php(202): CApiWrapper->__call() #11 {main} Cannot modify header information - headers already sent [: -> CCookieSession->write() -> CCookieHelper::set() -> setcookie() -> CConfigFile->{closure}() in include/classes/helpers/CCookieHelper.php:54] PHP Request Shutdown: Failed to write session data using user defined save handler. (session.save_path: /var/lib/php/sessions, handler: update_timestamp) [: -> CConfigFile->{closure}()]
Expected:
No errors expected.
- caused by
-
ZBXNEXT-5878 Enhance permission checking/handling
-
- Closed
-
- mentioned in
-
Page Loading...