-
Type:
Problem report
-
Resolution: Unresolved
-
Priority:
Trivial
-
Affects Version/s: 8.0.0beta2 (master)
-
Component/s: Frontend (F)
-
Sprint candidates
Steps to reproduce:
- Edit zabbix.conf.php
- Add invalid parameter, for example:
$DB['TYPE'] = 'TEST';
- Open the frontend
- Validate that correct error message is displayed
- Open /setup.php
Result:
Blank page is displayed, error is present in php log:
Trying to access array offset on null [setup.php:98 -> access_deny() -> CAuthenticationHelper::getPublic() -> CAuthentication::getPublic() -> CConfigFile->{closure:/home/zabbix/workspace/master/ui/conf/zabbix.conf.php:85}() in include/classes/api/services/CAuthentication.php:59]
TypeError: implode(): Argument #2 ($array) must be of type ?array, false given in /home/zabbix/workspace/master/ui/include/db.inc.php:558
Stack trace:
#0 /home/zabbix/workspace/master/ui/include/db.inc.php(558): implode()
#1 /home/zabbix/workspace/master/ui/include/classes/db/DB.php(1181): dbConditionString()
#2 /home/zabbix/workspace/master/ui/include/classes/db/DB.php(1067): DB::dbFilter()
#3 /home/zabbix/workspace/master/ui/include/classes/db/DB.php(983): DB::applyQueryFilterOptions()
#4 /home/zabbix/workspace/master/ui/include/classes/db/DB.php(860): DB::createSelectQueryParts()
#5 /home/zabbix/workspace/master/ui/include/classes/api/helpers/CApiSettingsHelper.php(37): DB::makeSql()
#6 /home/zabbix/workspace/master/ui/include/classes/api/services/CAuthentication.php(60): CApiSettingsHelper::getParameters()
#7 /home/zabbix/workspace/master/ui/include/classes/helpers/CAuthenticationHelper.php(81): CAuthentication::getPublic()
#8 /home/zabbix/workspace/master/ui/include/func.inc.php(1460): CAuthenticationHelper::getPublic()
#9 /home/zabbix/workspace/master/ui/setup.php(98): access_deny()
#10 {main}
Expected:
Expected result should be confirmed with PO team:
Access denied error should be displayed (same as currently displayed, if zabbix.conf.php file exists.) or same error regarding the incorrect parameter in config file.
- caused by
-
ZBXNEXT-10243 Feature flags in the frontend
-
- Doc. sign-off
-