Skip to content

Fix organization creation when domain field is empty - #51542

Merged
pedroigor merged 1 commit into
keycloak:mainfrom
sguilhen:fix-50825-org-empty-domain
Aug 10, 2026
Merged

Fix organization creation when domain field is empty#51542
pedroigor merged 1 commit into
keycloak:mainfrom
sguilhen:fix-50825-org-empty-domain

Conversation

@sguilhen

@sguilhen sguilhen commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Closes #50825

Copilot AI balanced review requested due to automatic review settings August 7, 2026 14:05
@sguilhen
sguilhen requested review from a team as code owners August 7, 2026 14:05
@sguilhen
sguilhen requested a review from edewit August 7, 2026 14:05

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

Filters blank organization domains before API submission, fixing optional-domain creation.

Changes:

  • Removes blank entries and trims domain names.
  • Adds conversion tests for blank, mixed, whitespace, and undefined domains.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
OrganizationForm.tsx Sanitizes domains before conversion.
OrganizationForm.test.tsx Tests domain conversion behavior.

Closes keycloak#50825

Signed-off-by: Stefan Guilhen <sguilhen@redhat.com>
@sguilhen
sguilhen force-pushed the fix-50825-org-empty-domain branch from 3b83876 to 356f373 Compare August 7, 2026 14:12
Copilot AI review requested due to automatic review settings August 7, 2026 14:12
@sguilhen
sguilhen requested review from pedroigor and removed request for Copilot August 7, 2026 14:16

@keycloak-github-bot keycloak-github-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Unreported flaky test detected, please review

@keycloak-github-bot

Copy link
Copy Markdown

Unreported flaky test detected

If the flaky tests below are affected by the changes, please review and update the changes accordingly. Otherwise, a maintainer should report the flaky tests prior to merging the PR.

org.keycloak.testsuite.webauthn.registration.passwordless.PwdLessOtherSettingsTest#apiSecurityErrorMessage

Keycloak CI - WebAuthn IT

org.openqa.selenium.WebDriverException: 
unknown error: unhandled inspector error: {"code":-32000,"message":"Node with given id does not belong to the document"}
  (Session info: chrome=150.0.7871.128)
Build info: version: '4.28.1', revision: '73f5ad48a2'
System info: os.name: 'Linux', os.arch: 'amd64', os.version: '6.17.0-1020-azure', java.version: '25.0.3'
...

Report flaky test

@pedroigor
pedroigor merged commit 6f00db3 into keycloak:main Aug 10, 2026
92 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.

Creating an organization without a domain leads to an error

3 participants