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

Trigger expression: Header modification error, session write failure, and DB value length exceeded

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 6.0.40rc1
    • Frontend (F)

      Steps to reproduce:

      1. Create new trigger with long expression, for example:
      count(/Host from 6.0/agent.ping,1s,,"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\a")=0 
      1. Add extra characters so that the total length of the count function parameter is more than 255 characters. Try to save updated trigger

      Result: User gets stuck on gray background, php error appears.{}

      Cannot modify header information - headers already sent [: -> CCookieSession->write() -> CCookieHelper::set() -> setcookie() -> CConfigFile->{closure}() in include/classes/helpers/CCookieHelper.php:59]
      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}()]
      DBException: Value "$,1s,,"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\a"" is too long for field "parameter" - 258 characters. Allowed length is 255 characters. in /home/zabbix/workspace/6.0/ui/include/classes/db/DB.php:78
      Stack trace:
      #0 /home/zabbix/workspace/6.0/ui/include/classes/db/DB.php(424): DB::exception()
      #1 /home/zabbix/workspace/6.0/ui/include/classes/db/DB.php(670): DB::checkValueTypes()
      #2 /home/zabbix/workspace/6.0/ui/include/classes/api/services/CTriggerGeneral.php(1722): DB::insertBatch()
      #3 /home/zabbix/workspace/6.0/ui/include/classes/api/services/CTrigger.php(552): CTriggerGeneral->updateReal()
      #4 /home/zabbix/workspace/6.0/ui/include/classes/api/clients/CLocalApiClient.php(121): CTrigger->update()
      #5 /home/zabbix/workspace/6.0/ui/include/classes/api/wrappers/CFrontendApiWrapper.php(97): CLocalApiClient->callMethod()
      #6 /home/zabbix/workspace/6.0/ui/include/classes/api/wrappers/CApiWrapper.php(94): CFrontendApiWrapper->callClientMethod()
      #7 /home/zabbix/workspace/6.0/ui/include/classes/api/wrappers/CFrontendApiWrapper.php(63): CApiWrapper->callMethod()
      #8 /home/zabbix/workspace/6.0/ui/include/classes/api/wrappers/CApiWrapper.php(82): CFrontendApiWrapper->callMethod()
      #9 /home/zabbix/workspace/6.0/ui/triggers.php(412): CApiWrapper->__call()
      #10 {main}
      Cannot modify header information - headers already sent [: -> CCookieSession->write() -> CCookieHelper::set() -> setcookie() -> CConfigFile->{closure}() in include/classes/helpers/CCookieHelper.php:59]
      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:
      User error message with details. Example from 7.0:

       

            zabbix.dev Zabbix Development Team
            dponomarenko Deniss Ponomarenko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: