#37697·core

config:app:set has no "type" parameter

Author: phil-davisCreated Jul 17, 2020Updated Jul 9, 2026
LabelsType:Bugjunior job

occ config:system:set has --type parameter and you can set a setting to boolean true or false.

occ config:app:set has no --type parameter. Do something like:

php occ config:app:set files enable_lock_file_action --value true

Actually the setting is string "true". Code that gets the setting ends up understanding that it is boolean true because it is non-zero.

php occ config:app:set files enable_lock_file_action --value false

The setting is string "false". Code that gets the setting ends up understanding that it is boolean true because it is non-zero. But users get confused, it looks false but the functionality is still enabled.

php occ config:app:set files enable_lock_file_action --value 0

Setting to 0 really switched off the setting.

occ config:app:delete files enable_lock_file_action

Deleting the setting allows it to go back to its default of false.

It would be less confusing if we could do:

php occ config:app:set files enable_lock_file_action --type boolean --value false

If the backend database field is only storing a string, then --type boolean --value false could store "0" and --type boolean --value true could store "1".