Skip to content

SEC-3165: Get domain object instance based on runtime class in voters #3374

Open
@spring-projects-issues

Description

@spring-projects-issues

Olivier Ailloud (Migrated from SEC-3165) said:

The method getDomainObjectInstance in AbstractAclVoter loops through the parameters and looks for any parameter whose +declared+ class is assignable from the processDomainObjectClass.
But when the parameter's type is an interface, this is annoying as the voter will throw an AuthorizationServiceException even if implementations are eligible for this voter.
It seems to me that it should rather be based on the +runtime+ class.

The patch seems fairly easy, I may provide it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: aclAn issue in spring-security-acltype: enhancementA general enhancementtype: jiraAn issue that was migrated from JIRA

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions