-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Labels
area/admin/uikind/bugCategorizes a PR related to a bugCategorizes a PR related to a bugpriority/blockerHighest Priority. Has a deadline and it blocks other tasksHighest Priority. Has a deadline and it blocks other tasksrelease/26.4.5release/26.5.0team/core-iam
Milestone
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
After allowing only normalized URLs in requests (#43765), users can't view/edit permissions in Client Authorization tab in the Admin Console. Once the user clicks on a Permission the UI crashes with this error missingNormalization.
Version
26.4.4
Regression
- The issue is a regression
Expected behavior
User should be able to view a client permission.
Actual behavior
UI crashes with error missingNormalization.
How to Reproduce?
- In the Admin Console, create a new Client. Enable Authorization.
- Go to the
Authorizationtab. ThenPermissionstab. - Click on the
Default Permission. - The UI will crash.
Anything else?
- The issue doesn't happen if you set
http-accept-non-normalized-pathstotrue. - The cause of the issue is that the UI code calls the REST API
/auth/admin/realms/{realmId}/clients/{clientId}/authz/resource-server/policy/{policyType}/{policyId}with emptypolicyTypewhich results in double slashes in the URL. - After checking the code, in
ResourcesPolicySelect.tsxcallsfindOnePolicy()with emptytypehere.
AMTourky, AhmedAbdelfaheem, karim-awara, tobiaslatour and tdivis
Metadata
Metadata
Assignees
Labels
area/admin/uikind/bugCategorizes a PR related to a bugCategorizes a PR related to a bugpriority/blockerHighest Priority. Has a deadline and it blocks other tasksHighest Priority. Has a deadline and it blocks other tasksrelease/26.4.5release/26.5.0team/core-iam