Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-24792

Empty Notifications page for a user with Admin permissions and without user group

XMLWordPrintable

    • 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.

            jfreibergs Janis Freibergs
            jiljina Juliana Iljina
            Team C
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 2h
                2h