?
avatar PhilETaylor
PhilETaylor
28 Jun 2020

Steps to reproduce the issue

Joomla 4.0-dev @ af9be59
Joomla Global Config Error Reporting = maximum

php cli/joomla.php config:set error_reporting=NONSUCH -vvv

Expected result

Expect that NONSUCH is rejected as a non valid value of error_reporting like it would be if submitted in Joomla Admin

Actual result

value is stored in configuration.php

	public $error_reporting = 'NONSUCH';

Additional comments

Affects other properties of the config too - no validation.

avatar PhilETaylor PhilETaylor - open - 28 Jun 2020
avatar joomla-cms-bot joomla-cms-bot - change - 28 Jun 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 28 Jun 2020
avatar brianteeman
brianteeman - comment - 29 Jun 2020

Expect that NONSUCH is rejected as a non valid value of error_reporting like it would be if submitted in Joomla Admin

My test shows that there is no validation in the admin either. It is perfectly possible to manipulate the form to submit garbage values.

image

avatar PhilETaylor
PhilETaylor - comment - 29 Jun 2020

The difference being, at least a dropdown of predefined values is given in the admin console, so under normal circumstances its impossible to set an invalid value unless you are hacking yourself (while logged in as a super admin)

At the command line a typo is VERY easy to make!

avatar brianteeman
brianteeman - comment - 29 Jun 2020

Not arguing that - just that the reported comment was not true

avatar wilsonge
wilsonge - comment - 8 Jan 2021

I'm going to close this in favour of the more generic #31900

avatar wilsonge wilsonge - close - 8 Jan 2021
avatar wilsonge wilsonge - change - 8 Jan 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-01-08 18:14:18
Closed_By wilsonge

Add a Comment

Login with GitHub to post a comment