Skip to content

Conversation

@jonkoops
Copy link
Contributor

Prevents the admin client from duplicating slashes in request URLs, which can make the request URL invalid.

Closes #44269

Copy link
Contributor

@rmartinc rmartinc left a comment

Choose a reason for hiding this comment

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

Thanks @jonkoops! LGTM! This does not fix if the user passes some weird URL like https.//localhost//auth, but I don't think we should really fix that URL. So more than enough for me.

@jonkoops
Copy link
Contributor Author

Agreed, this is more about simple path joining, which the admin client should be able to handle, if the user provides a malformed URL, that is 'garbage in, garbage out', and in their realm of responsibility.

@mposolda can I ask you for a merge?

@mposolda mposolda self-assigned this Nov 18, 2025
@mposolda
Copy link
Contributor

@jonkoops @rmartinc Thanks for the PR and review!

@mposolda mposolda merged commit f7e4b78 into keycloak:main Nov 18, 2025
58 checks passed
@jonkoops jonkoops deleted the handle-double-slash branch November 18, 2025 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Admin Client creates malformed paths for requests

3 participants