SOLR-16621: Admin UI fails to grant user permissions with wildcard role #1294
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
https://issues.apache.org/jira/browse/SOLR-16621
Always grant access to a permission that has has the wildcard
"*"
role, no matter what roles user has.Note, this is not the same as not requiring authentication for the permission,
"roles": null
. It means that the permission needs an authenticated user, but any role will do.Also, this is just UI stuff so will not modify actual permissions on the API level, but will align role checking logic so it matches that of the backend.
To test:
*
as role(To confirm the bug, do the same test on main branch and see that user is blocked from security dashboard once the permissions are changed to
role=*
).