Detect unintentional multiple *.config.php
files to catch weird config problems
#46665
Labels
0. Needs triage
Pending check for reproducibility or if it fits our roadmap
enhancement
feature: settings
Sometimes an administrator makes a manual backup of their existing config before making an adjustment. If they name it
{anything}.config.php
this results in them unintentionally having overlapping config files. And it also means the backup takes precedence. This creates all sorts of unexpected behaviors that can be difficult to isolate (and may give the appearance of bugs)1.Multiple
config.php
file support is valid so this problem is difficult to detect automatically without creating lots of false positives. I think we can take a pragmatic approach by focusing on two areas of improvement:version
field valuesSpecifically:
occ
commands3Footnotes
e.g. https://help.nextcloud.com/t/nextcloud-failed-after-update-to-29-0-4-from-28-0-2/198547/12 ↩
I think we could check for two things occurring and warn only if they occur simultaneously: multiple config.php files detected and differing
version
field values across them. This avoids false positives (while likely catching probably the most common unintentional scenario). ↩Relevant to "Upgrader" (
occ upgrade
), but less so - at least directly - to the non-multi aware Updater4 (updater[phar]
) ↩(yeah I know...) ↩
The text was updated successfully, but these errors were encountered: