Skip to content

fix(userconfig): reread preferences after duplicate insert when caches are loaded - #66117

Open
lazerg wants to merge 1 commit into
nextcloud:masterfrom
lazerg:fix/issue-64191-userconfig-duplicate-reload
Open

lazerg wants to merge 1 commit into
nextcloud:masterfrom
lazerg:fix/issue-64191-userconfig-duplicate-reload

Conversation

@lazerg

@lazerg lazerg commented Oct 31, 2026

Copy link
Copy Markdown

Summary

When another request inserts the same preference after both caches are loaded, the duplicate-insert recovery called loadConfigAll(), which skipped the database read because the caches were already marked loaded, so setTypedValue() threw UnknownKeyException. The caches for the user are now dropped before the reread. Added a test that fails without the change.

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI
…s are loaded

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: lazerg <lazerg2@gmail.com>
@lazerg
lazerg requested a review from a team as a code owner October 31, 2026 08:15
@lazerg
lazerg requested review from CarlSchwan, come-nc, provokateurin and sorbaugh and removed request for a team October 31, 2026 08:15

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant