nextcloud/lib
Josh Richards 62192ca57a fix(config): Add missing handling for envCache in getKeys()
NC_ env variable overrides were not appearing in
the output of `occ config:list system` nor `occ
config:system:get xxx`. This was creating nearly
impossible to diagnose configuration/ behavior
disprepancies.

- Refactored readData() so that we aren't saving
  the entire environment in the envCache anymore
  (only those prefixed "NC_") and so that we save
  NC_ provided config values under their real
  key.
- Refactored getValue() to accommodate readData()
  refactor
- Fixed getKeys() to properly return
  envCache keys too

Environment provided config variables now appear
in `occ config:list system` as expected.

Environment provided config variables now appear
when queried via `occ config:system:get KEY`

envCache is now free of non-NC stuff.

Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
2024-07-08 16:41:58 -04:00
..
composer Merge pull request #46115 from nextcloud/enh/add-a-universal-debug-option-to-occ 2024-07-08 17:15:02 +02:00
l10n Fix(l10n): Update translations from Transifex 2024-07-08 00:19:42 +00:00
private fix(config): Add missing handling for envCache in getKeys() 2024-07-08 16:41:58 -04:00
public Merge pull request #46115 from nextcloud/enh/add-a-universal-debug-option-to-occ 2024-07-08 17:15:02 +02:00
autoloader.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
base.php fix(occ): Use the const instead of hardcoded string for --debug-log option 2024-07-08 16:09:39 +02:00
versioncheck.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00