Allows import to succeed when realm names include whitespaces#11964
Allows import to succeed when realm names include whitespaces#11964DGuhr wants to merge 3 commits intokeycloak:mainfrom
Conversation
|
@DGuhr I'm sorry if I missed it, but is this a regression? If so, did you find the root cause? |
|
@vmuzikar from the answer in the issue it seems to be a regression from Keycloak 6, yes. Last PR that touched these was titled |
|
@DGuhr Thank you for the clarification! IMHO loosening the validation in URLs in general is not the way to go. We could maybe instead try to sanitize the URLs on Realm Import, before any validation happens. |
…ldfly regression tomorrow.
|
@vmuzikar updated the PR now to sanitize it at the right point, at least for the --import-realm at startup for quarkus. have to find the spots for wildfly / the actual import command, and I think edit: Ah hum, now the redirect uri field in the client will actually have the %20 inside... hum. Have to check if that actually causes side effects. Nevertheless, gotten a bit late. tomorrow. |
cc @pedroigor @vmuzikar @abstractj As said, this does the trick, but I am not entirely sure about this solution (alternative could be to e.g. encode the URLs before giving them to the validation), so draft state for now. Test will follow, too. Could you please give me your thoughts on this one? Fixes it for both, wildfly and quarkus.
Closes #11921