View Issue Details

IDProjectCategoryView StatusLast Update
0035915mantisbtadministrationpublic2025-07-23 06:04
Reporterdregad Assigned Todregad  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version2.26.0 
Target Version2.27.2Fixed in Version2.27.2 
Summary0035915: Updating a global config yields incorrect error message
Description

Trying to add a new config option from adm_config_page.php yields ERROR_INVALID_FIELD_VALUE, e.g.

APPLICATION ERROR #29 
Invalid value for 'version_suffix'

This is incorrect, it should be ERROR_CONFIG_OPT_CANT_BE_SET_IN_DB.

Additional Information

Regression caused by introduction of ConfigsSetCommand (0032258).

TagsNo tags attached.

Relationships

related to 0032258 closedvboctor Add REST API for setting config options that are settable via database 
has duplicate 0036158 closeddregad Wrong error message when trying to set an option that can't be set in database 
related to 0036164 resolveddregad Impossible to delete a global config defined in the database 

Activities

Related Changesets

MantisBT: master-2.27 9aeb54fb

2025-05-05 12:52

dregad


Details Diff
Correct error code when updating a global config

Now using ERROR_CONFIG_OPT_CANT_BE_SET_IN_DB instead of incorrect
ERROR_INVALID_FIELD_VALUE

Fixes 0035915
Affected Issues
0035915
mod - core/commands/ConfigsSetCommand.php Diff File

MantisBT: master-2.27 fcfc9344

2025-05-05 12:53

dregad


Details Diff
Fix typo and improve error message wording

Issue 0035915
Affected Issues
0035915
mod - lang/strings_english.txt Diff File