Skip to content

Conversation

@pocj8ur4in
Copy link

@pocj8ur4in pocj8ur4in commented Jan 25, 2026

Summary

  • Add compile-warnings-error plugin to data module
  • Remove deprecated setDefaultRolePrefix() call in getRootObject()
  • Add @SuppressWarnings deprecation for tests using deprecated methods
  • Add tests using AuthorizationManagerFactory

Test

  • ./gradlew --no-build-cache clean :spring-security-data:check
  • ./gradlew format

Closes gh-18422

- Add
  compile-warnings-error plugin to data module
- Remove
  deprecated setDefaultRolePrefix() call in getRootObject()
- Add
  @SuppressWarnings deprecation for tests using deprecated methods
- Add
  tests using AuthorizationManagerFactory

Closes
  spring-projectsgh-18422

Signed-off-by: pocj8ur4in <[email protected]>
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jan 25, 2026
@rwinch rwinch added this to the 7.1.0-M2 milestone Jan 26, 2026
@rwinch rwinch added in: build An issue in the build type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Jan 26, 2026
@rwinch rwinch self-assigned this Jan 26, 2026
Copy link
Member

@rwinch rwinch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! I've added some feedback inline

root.setPermissionEvaluator(this.permissionEvaluator);
if (!DEFAULT_ROLE_PREFIX.equals(this.defaultRolePrefix)) {
// Ensure SecurityExpressionRoot can strip the custom role prefix
root.setDefaultRolePrefix(this.defaultRolePrefix);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a breaking change. We must preserve this functionality until the deprecation has been removed. Can you please restore that?

@rwinch rwinch added the status: waiting-for-feedback We need additional information before we can continue label Jan 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in: build An issue in the build status: waiting-for-feedback We need additional information before we can continue type: enhancement A general enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove compiler warnings for spring-security-data

3 participants