8000 Correcting SCIM NPE by hypery2k · Pull Request #55051 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Correcting SCIM NPE - #55051

Merged
pedroigor merged 1 commit into
keycloak:mainfrom
m13tLabs:bugfix/scim-null-annotations
Nov 11, 2026
Merged

pedroigor merged 1 commit into
keycloak:mainfrom
m13tLabs:bugfix/scim-null-annotations

Conversation

@hypery2k
@hypery2k hypery2k commented Nov 11, 2026 •
Copy link
Copy Markdown
Contributor

resolves #55058

@hypery2k
hypery2k requested review from a team as code owners November 11, 2026 15:41
Copilot AI balanced review requested due to automatic review settings November 11, 2026 15:41
@hypery2k
hypery2k force-pushed the bugfix/scim-null-annotations branch from b39858e to 20ce1b1 Compare November 11, 2026 15:43
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.

🟡 Changes recommended

The change incorrectly claims to resolve #53260 while single-valued predicates still use EXISTS, requiring either a corrected issue reference or the corresponding fix and regression test.

1 open issue
What changed in this PR

This PR fixes a null-pointer exception in SCIM custom-attribute resolution when user-profile attributes have no annotations.

Changes:

  • Skip attributes with missing metadata or annotations without stopping the lookup.
  • Add a regression test for filtering a custom attribute after an unannotated attribute.
  • Change generated OpenAPI validation descriptions from English to German fragments.
File Description
scim/​tests/​base/​src/​test/​java/​org/​keycloak/​tests/​scim/​tck/​FilterTest.java Adds regression coverage for unannotated user-profile attributes.
scim/​model/​src/​main/​java/​org/​keycloak/​scim/​model/​user/​UserExtensionModelSchema.java Handles missing annotations and continues attribute lookup.
js/​libs/​keycloak-admin-client/​openapi.json Introduces locale-only documentation changes unrelated to the SCIM fix.

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 11, 2026 15:44
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.

🟡 Changes recommended

The claimed #53260 resolution leaves inconsistent null handling between negated equality and inequality, so it needs a predicate fix with regression coverage or a corrected issue reference.

2 open issues

Review effort: Balanced

@hypery2k
hypery2k force-pushed the bugfix/scim-null-annotations branch from 20ce1b1 to f10f1a3 Compare November 11, 2026 17:48
resolves keycloak#55058

Signed-off-by: Martin Reinhardt <martin@m13t.de>
@hypery2k
hypery2k force-pushed the bugfix/scim-null-annotations branch from f10f1a3 to 4bd03c8 Compare November 11, 2026 18:12
Copilot AI balanced review requested due to automatic review settings November 11, 2026 18:12
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.

🟢 Approval recommended

No active review issues remain for the SCIM custom attribute lookup fix.

2 open issues

Review effort: Balanced

@pedroigor pedroigor 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.

Thanks, @m13tLabs.

@pedroigor
pedroigor merged commit 02167f1 into keycloak:main Nov 11, 2026
96 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.

SCIM custom attribute lookup fails with NPE when a user profile attribute has no annotations

3 participants

0