Skip to content
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

Network error attempting to view default realm roles without permissions #29211

Open
1 of 2 tasks
Jamstah opened this issue May 2, 2024 · 1 comment
Open
1 of 2 tasks
Assignees
Labels
area/admin/ui kind/bug Categorizes a PR related to a bug priority/important Must be worked on very soon team/ui

Comments

@Jamstah
Copy link
Contributor

Jamstah commented May 2, 2024

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

If a user has view-realm permission they can see the realm roles. If they go to realm roles and select the default-roles entry, they get a network error instead of a permissions error. After the error, the console is completely unresponsive and the window must be refreshed.

Network response was not OK.

image

Version

quay.io/keycloak/keycloak:latest

Regression

  • The issue is a regression

Expected behavior

Permissions error should be shown

Actual behavior

Network error shown and admin console unresponsive.

How to Reproduce?

  1. Create a realm
  2. Create a user in the realm with view-realm permissions
  3. Log in as that user
  4. Go to Realm Roles
  5. Attempt to view the default-roles- item

Anything else?

Same thing happens going to Realm Settings -> User registration with the same permissions.

@Jamstah Jamstah added kind/bug Categorizes a PR related to a bug status/triage labels May 2, 2024
@Jamstah
Copy link
Contributor Author

Jamstah commented May 2, 2024

This also happens in Realm Settings -> Events if the user doesn't have event permissions.

LMK If that needs to be a separate bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/admin/ui kind/bug Categorizes a PR related to a bug priority/important Must be worked on very soon team/ui
Projects
None yet
Development

No branches or pull requests

2 participants