Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable28] fix(config): Add missing handling for envCache in getKeys() #48099

Merged
merged 3 commits into from
Sep 23, 2024

Conversation

backportbot[bot]
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 28.0.11 milestone Sep 16, 2024
@solracsf solracsf added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Sep 17, 2024
@icewind1991 icewind1991 merged commit 6baa60a into stable28 Sep 23, 2024
56 checks passed
@icewind1991 icewind1991 deleted the backport/46140/stable28 branch September 23, 2024 05:27
@Altahrim Altahrim mentioned this pull request Oct 1, 2024
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants