-
Incident report
-
Resolution: Incomplete
-
Trivial
-
None
-
6.4.4
-
Debian 12, postgres 14, timescaleDB 2.7.2, nginx 1.18.0-6.1+deb11u3
Steps to reproduce:
- Having configuration above running with php7.4 already results in numerous warnings in the php errorlog:
[11-Jul-2023 08:15:38 Europe/Berlin] PHP Deprecated: Parameter "/auth" is deprecated. in /usr/share/zabbix/include/classes/validators/CApiInputValidator.php on line 1475
- Switchting to php8.2 escalates those error messages:
[11-Jul-2023 08:15:28 Europe/Berlin] PHP Deprecated: Parameter "/auth" is deprecated. in /usr/share/zabbix/include/classes/validators/CApiInputValidator.php on line 1475
[11-Jul-2023 08:15:28 Europe/Berlin] PHP Stack trace:
[11-Jul-2023 08:15:28 Europe/Berlin] PHP 1. {main}() /usr/share/zabbix/api_jsonrpc.php:0
{{[11-Jul-2023 08:15:28 Europe/Berlin] PHP 2. CJsonRpc->execute($request = class CHttpRequest { private $add_headers = [0 => 'CONTENT_TYPE', 1 => 'CONTENT_LENGTH', 2 => 'Authorization', 3 => 'PATH-INFO']; private $body = '
'; private $method = 'POST'; private $protocol = 'HTTP/1.1'; private $request_method = 'POST'; private $headers = ['COOKIE' => 'zbx_session=eyJzZXNzaW9uaWQiOiI4MGFmNjk1MzA1OTVhN2FiMzIyZDg1OWQyNjkxMmY0OSIsInNlcnZlckNoZWNrUmVzdWx0Ijp0cnVlLCJzZXJ2ZXJDaGVja1RpbWUiOjE2ODkwNTYxMjUsInNpZ24iOiJjMzVlMmRhMzE4ZmYyNWJmZmU4NmQ3ZWE5NmI3YTI2YWNiMzliYTAyOTFlOGJlZDcxMzg4M2EwZmVkNzYwNDE4In0%3D', 'ACCEPT-LANGUAGE' => 'de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7,fr;q=0.6', 'ACCEPT-ENCODING' => 'gzip, deflate, br', 'SEC-FETCH-DEST' => 'empty', 'SEC-FETCH-MODE' => 'cors', 'SEC-FETCH-SITE' => 'none', 'ORIGIN' => 'chrome-extension://goinajfhamfchlmkddedkncmlgfcieac', 'ACCEPT' => '*/*', 'CONTENT-TYPE' => 'application/json-rpc', 'USER-AGENT' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36', 'SEC-CH-UA-MOBILE' => '?0', 'SEC-CH-UA-PLATFORM' => '"Windows"', 'SEC-CH-UA' => '"Not.A/Brand";v="8", "Chromium";v="114", "Google Chrome";v="114"', 'CONTENT-LENGTH' => '103', 'CONNECTION' => 'keep-alive', 'HOST' => 'zabbix.outbox.de']; private $raw = NULL }) /usr/share/zabbix/api_jsonrpc.php:63}}
[11-Jul-2023 08:15:28 Europe/Berlin] PHP 3. CJsonRpc->validate($call = ['jsonrpc' => '2.0', 'id' => '1', 'auth' => 'dcd65914c7c117b1baf0985709dc9918', 'method' => 'user.logout', 'params' => []]) /usr/share/zabbix/include/classes/core/CJsonRpc.php:77
[11-Jul-2023 08:15:28 Europe/Berlin] PHP 4. CApiInputValidator::validate($rule = ['type' => 8, 'fields' => ['jsonrpc' => [...], 'method' => [...], 'params' => [...], 'auth' => [...], 'id' => [...]]], $data = ['jsonrpc' => '2.0', 'id' => '1', 'auth' => 'dcd65914c7c117b1baf0985709dc9918', 'method' => 'user.logout', 'params' => []], $path = '/', $error = '') /usr/share/zabbix/include/classes/core/CJsonRpc.php:131
[11-Jul-2023 08:15:28 Europe/Berlin] PHP 5. CApiInputValidator::validateData($rule = ['type' => 8, 'fields' => ['jsonrpc' => [...], 'method' => [...], 'params' => [...], 'auth' => [...], 'id' => [...]]], $data = ['jsonrpc' => '2.0', 'id' => '1', 'auth' => 'dcd65914c7c117b1baf0985709dc9918', 'method' => 'user.logout', 'params' => []], $path = '/', $error = '') /usr/share/zabbix/include/classes/validators/CApiInputValidator.php:40
[11-Jul-2023 08:15:28 Europe/Berlin] PHP 6. CApiInputValidator::validateObject($rule = ['type' => 8, 'fields' => ['jsonrpc' => [...],
'method' => [...], 'params' => [...], 'auth' => [...], 'id' => [...]]], $data = ['jsonrpc' => '2.0', 'id' => '1', 'auth' => 'dcd65914c7c117b1baf0985709dc9918', 'method' => 'user.logout', 'params' => []], $path = '/', $error = '') /usr/share/zabbix/include/classes/validators/CApiInputValidator.php:133
[11-Jul-2023 08:15:28 Europe/Berlin] PHP 7. trigger_error($message = 'Parameter "/auth" is deprecated.', $error_level = 16384) /usr/share/zabbix/include/classes/validators/CApiInputValidator.php:1475
- is duplicated by
-
ZBX-23082 Upgrade to php8 results in errors
- Closed