-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Closed
Labels
Description
Before reporting an issue
- I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.
Area
admin/ui
Describe the bug
When accessing the admin console with a selected realm that doesn't exist, the whoami endpoint returns a 500 Internal Server Error. There is an NPE thrown here:
keycloak/services/src/main/java/org/keycloak/services/resources/admin/AdminConsole.java
Line 294 in 10aca55
| getRealmAdminAccess(realm, realm.getMasterAdminClient(), user, realmAdminAccess); |
I did not yet test this with the latest release, but by having a look at the code in main the issue could still be there.
Version
25.0.5
Regression
- The issue is a regression
Expected behavior
Something meaningful is returned
Actual behavior
500 is returned due to NPE
How to Reproduce?
Access admin console with /admin/master/console/#/nonExistingRealm.
Anything else?
No response
Reactions are currently unavailable