Skip to content

SEC-1887: Cannot override (protected) DefaultMethodSecurityExpressionHandler.createSecurityExpressionRoot #2115

@spring-projects-issues

Description

@spring-projects-issues

Dave Syer (Migrated from SEC-1887) said:

There is some inconsistent visibility of the internals: DefaultMethodSecurityExpressionHandler.createSecurityExpressionRoot(Authentication, MethodInvocation) is protected but it returns an instance of a package private class MethodSecurityExpressionRoot. This would be fine except that {[DefaultMethodSecurityExpressionHandler.filter(Object, Expression, EvaluationContext)}} then makes an assumption that the root is of this precise type, and therefore createSecurityExpressionRoot actually cannot be overridden (which would be quite useful).

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: coreAn issue in spring-security-coretype: enhancementA general enhancementtype: jiraAn issue that was migrated from JIRA

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions