Skip to content

SEC-2074: Injection of MethodSecurityMetadataSource through XML #2298

@spring-projects-issues

Description

@spring-projects-issues

Marrache Mickael (Migrated from SEC-2074) said:

The doc provides an example which doesn't work:

com.mycompany.BankManager.delete*=ROLE_SUPERVISOR com.mycompany.BankManager.getBalance=ROLE_TELLER,ROLE_SUPERVISOR

I get the following exception:

Caused by: java.lang.IllegalStateException: Cannot convert value of type [java.lang.String] to required type [org.springframework.security.access.method.MethodSecurityMetadataSource] for property 'securityMetadataSource': no matching editors or conversion strategy found
at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:241)
at org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:470)
... 27 more

See the link to StackOverflow.

Thanks,
Mickael

Metadata

Metadata

Assignees

Labels

in: docsAn issue in Documentation or samplestype: bugA general bugtype: 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