New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removing the Realm ID and saving causes the realm to be vanished from the list of the realms #17449
Comments
I'm not seeing this behavior in the UI. When I remove the Realm ID field and try to save, it properly reports an error as You could try this on the latest nightly build and see what happens. I am going to move this over to the core team to verify that the API is rejecting a realm settings update with an empty realm id. |
@ssilvert Just tested it with the nightly: Via the API the creation of a realm with an empty realm id is still possible: |
Thanks for the extra info @antikalk. Definitely an API issue. |
Adding to Backlog with label |
I would like to fix this issue |
Marking this as "help wanted" again as the original PR got stale. |
By mistake I did made a realm without an name through the API, we are using keycloak version 22.0.1. It's not accessible through the UI. I did investigate to delete that specific realm, but I'm terrified I delete other realms because everything through the API is based on the name of the realm. |
If I remember correctly I had to manually delete that realm from the database directly. Deleting the realm with the API won't work in the case of a realm with an empty Realm ID. |
Added a check to ignore renaming if it is an empty string. Closes keycloak#17449
Added a check to ignore renaming if it is an empty string. Closes keycloak#17449 Signed-off-by: atharvakshi <atharva4894@gmail.com>
Added a check to ignore renaming if it is an empty string. Closes keycloak#17449 Signed-off-by: atharva kshirsagar <atharva4894@gmail.com>
Throw ModelException if name is empty when creating/updating a realm Closes keycloak#17449 Signed-off-by: atharva kshirsagar <atharva4894@gmail.com>
Throw ModelException if name is empty when creating/updating a realm Closes keycloak#17449 Signed-off-by: atharva kshirsagar <atharva4894@gmail.com>
Throw ModelException if name is empty when creating/updating a realm Closes keycloak#17449 Signed-off-by: atharva kshirsagar <atharva4894@gmail.com> Signed-off-by: Alexander Schwartz <aschwart@redhat.com> Co-authored-by: Alexander Schwartz <aschwart@redhat.com>
Throw ModelException if name is empty when creating/updating a realm Closes keycloak#17449 Signed-off-by: atharva kshirsagar <atharva4894@gmail.com> Signed-off-by: Alexander Schwartz <aschwart@redhat.com> Co-authored-by: Alexander Schwartz <aschwart@redhat.com>
Throw ModelException if name is empty when creating/updating a realm Closes #17449 Signed-off-by: atharva kshirsagar <atharva4894@gmail.com> Signed-off-by: Alexander Schwartz <aschwart@redhat.com> Co-authored-by: Alexander Schwartz <aschwart@redhat.com>
Throw ModelException if name is empty when creating/updating a realm Closes keycloak#17449 Signed-off-by: atharva kshirsagar <atharva4894@gmail.com> Signed-off-by: Alexander Schwartz <aschwart@redhat.com> Co-authored-by: Alexander Schwartz <aschwart@redhat.com>
Throw ModelException if name is empty when creating/updating a realm Closes keycloak#17449 Signed-off-by: atharva kshirsagar <atharva4894@gmail.com> Signed-off-by: Alexander Schwartz <aschwart@redhat.com> Co-authored-by: Alexander Schwartz <aschwart@redhat.com> Signed-off-by: Stefan Wiedemann <wistefan@googlemail.com>
Throw ModelException if name is empty when creating/updating a realm Closes keycloak#17449 Signed-off-by: atharva kshirsagar <atharva4894@gmail.com> Signed-off-by: Alexander Schwartz <aschwart@redhat.com> Co-authored-by: Alexander Schwartz <aschwart@redhat.com> Signed-off-by: Kamontat Chantrachirathumrong <14089557+kamontat@users.noreply.github.com>
Throw ModelException if name is empty when creating/updating a realm Closes keycloak#17449 Signed-off-by: atharva kshirsagar <atharva4894@gmail.com> Signed-off-by: Alexander Schwartz <aschwart@redhat.com> Co-authored-by: Alexander Schwartz <aschwart@redhat.com> Signed-off-by: ShefeeqPM <86718986+ShefeeqPM@users.noreply.github.com>
Throw ModelException if name is empty when creating/updating a realm Closes keycloak#17449 Signed-off-by: atharva kshirsagar <atharva4894@gmail.com> Signed-off-by: Alexander Schwartz <aschwart@redhat.com> Co-authored-by: Alexander Schwartz <aschwart@redhat.com>
Before reporting an issue
Area
admin/ui
Describe the bug
Create a relam.
Then select it.
Then go to its general settings.
Remove the field content for the
Realm ID
field.Then save.
The form is saved (which should not, because
Realm ID
is a required field), and the relam gets vanished from the realm list.I don't know if it's removed from the database or not.
Version
20.0.2
Expected behavior
These are expected:
Actual behavior
How to Reproduce?
Realm ID
field.Realm ID
is a required field), and the relam gets vanished from the realm list.Anything else?
No response
The text was updated successfully, but these errors were encountered: