Skip to content

Conversation

@backportbot
Copy link

@backportbot backportbot bot commented Sep 16, 2024

Backport of PR #46140

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 <[email protected]>
@backportbot backportbot bot added bug 3. to review Waiting for reviews labels Sep 16, 2024
@backportbot backportbot bot added this to the Nextcloud 29.0.8 milestone Sep 16, 2024
@icewind1991 icewind1991 merged commit 0a20c69 into stable29 Sep 16, 2024
@icewind1991 icewind1991 deleted the backport/46140/stable29 branch September 16, 2024 16:54
@Altahrim Altahrim mentioned this pull request Oct 1, 2024
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants