Repository navigation
Persist client session note removals with persistent user sessions (#52038 26.6 Backport) - #52081
Merged
Merged
Conversation
JpaChangesPerformer replayed update tasks against a synthetic notes map that only forwarded get/put (client sessions) or get/put/remove/clear (user sessions) to the persisted model, so AuthenticatedClientSessionModel#removeNote and restartClientSession() never reached the database. Both merges now run the tasks the map directly. Fixes keycloak#52038 Signed-off-by: Thomas Darimont <thomas.darimont@googlemail.com> Signed-off-by: Alexander Schwartz <alexander.schwartz@ibm.com> Signed-off-by: Alexander Schwartz <alexander.schwartz@gmx.net> Co-authored-by: Alexander Schwartz <alexander.schwartz@ibm.com> Co-authored-by: Alexander Schwartz <alexander.schwartz@gmx.net> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> (cherry picked from commit b333c0f)
Signed-off-by: Alexander Schwartz <alexander.schwartz@ibm.com>
ahus1
enabled auto-merge (squash)
August 26, 2026 18:42
ahus1
approved these changes
Aug 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
26.6 backport of #52039
Fixes #52038
Note that I needed to adapt the
SessionNotePersistenceTestto use the 26.6 state of the test-framework.