-
Problem report
-
Resolution: Unresolved
-
Trivial
-
None
-
6.0.40rc1
Steps to reproduce:
- Create new trigger with long expression, for example:
count(/Host from 6.0/agent.ping,1s,,"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\a")=0
- 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: