Skip to content

Augment role hierarchy in RoleHierarchyImpl Builder #15307

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

Closed

Conversation

nielsbasjes
Copy link
Contributor

This change (as I have the code here) requires #15272 to be merged (and this should be rebased before merging).

Assume this role mapping in text send to the RoleHierarchyImpl:

ROLE_X > ROLE_A
ROLE_X > ROLE_B

The expectation is that this code fragment of using the RoleHierarchyImpl Builder would yield the same effect:

.role("X").implies("A")
.role("X").implies("B")

The current behavior of the Builder is that this results in the role "X" ONLY being assigned the role "B" (the last one assigned).

With this change the the role "X" will be assigned BOTH the roles "A" and "B" making it the same as the text format again.

FYI: @marcusdacoregio

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jun 27, 2024
@marcusdacoregio marcusdacoregio self-assigned this Jun 27, 2024
@marcusdacoregio marcusdacoregio added in: core An issue in spring-security-core type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Jun 27, 2024
@marcusdacoregio
Copy link
Contributor

Fixed via #15717

@marcusdacoregio marcusdacoregio added the status: duplicate A duplicate of another issue label Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core An issue in spring-security-core status: duplicate A duplicate of another issue type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants