Skip to content

Ensure consistent transaction rollback in SCIM error response paths - #51429

Merged
ahus1 merged 1 commit into
keycloak:mainfrom
mabartos:KC-51428
Aug 6, 2026
Merged

Ensure consistent transaction rollback in SCIM error response paths#51429
ahus1 merged 1 commit into
keycloak:mainfrom
mabartos:KC-51428

Conversation

@mabartos

@mabartos mabartos commented Aug 4, 2026

Copy link
Copy Markdown
Member

@keycloak/core-iam-maintainers Could you please check it? Thanks!

Closes keycloak#51428

Signed-off-by: Martin Bartoš <mabartos@redhat.com>
@mabartos
mabartos marked this pull request as ready for review August 4, 2026 19:46
@mabartos
mabartos requested a review from a team as a code owner August 4, 2026 19:46
Copilot AI balanced review requested due to automatic review settings August 4, 2026 19:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Ensures all centralized SCIM error responses mark the active transaction for rollback, preventing partial state persistence.

Changes:

  • Moves rollback marking before exception-specific response handling.
  • Applies rollback consistently across all SCIM error paths.

@mabartos
mabartos requested a review from a team August 5, 2026 07:13
@mabartos

mabartos commented Aug 5, 2026

Copy link
Copy Markdown
Member Author

@pedroigor @sguilhen Hi! Could you please check it? Thanks!

@mabartos
mabartos requested review from pedroigor and sguilhen August 5, 2026 12:50

@sguilhen sguilhen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch, thanks for the fix @mabartos !

@ahus1
ahus1 merged commit 03ff957 into keycloak:main Aug 6, 2026
91 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ensure consistent transaction rollback in SCIM error response paths

4 participants