Skip to content

Conversation

@bist220
Copy link
Contributor

@bist220 bist220 commented Feb 21, 2023

There are no check for role prefix in AuthorizeHttpRequestsConfigurer#XXXrole methoids. This PR adds check for the same. Now the configuration will fail if role/s start with prefix for hasRole and hasAnyRole methods.

Closes #12581

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Feb 21, 2023
@jzheaux jzheaux self-assigned this Feb 22, 2023
@jzheaux jzheaux added in: config An issue in spring-security-config status: duplicate A duplicate of another issue and removed status: waiting-for-triage An issue we've not yet triaged labels Feb 22, 2023
@jzheaux jzheaux modified the milestones: 5.6.x, 6.1.0-M2, 5.7.x, 5.7.8 Feb 28, 2023
There are no check for role prefix in AuthorizeHttpRequestsConfigurer#XXXrole
methods. This PR adds check for the same. Now the configuration
will fail if role/s start with prefix for hasRole and hasAnyRole methods.

Closes spring-projects#12581
@jzheaux jzheaux changed the base branch from 5.6.x to 5.7.x February 28, 2023 20:28
@jzheaux jzheaux added the type: bug A general bug label Mar 3, 2023
@jzheaux jzheaux merged commit 094bf1b into spring-projects:5.7.x Mar 3, 2023
@jzheaux
Copy link
Contributor

jzheaux commented Mar 3, 2023

Thanks, @bist220 for the PR! This is now merged into 5.7.x, 5.8.x, 6.0.x, and main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in: config An issue in spring-security-config status: duplicate A duplicate of another issue type: bug A general bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants