Hi Folks!
I'm migrating from 2.0.5 to 3.0.2.
Encouraged by the documentation, I'm trying to switch my old beans-style configuration to the new namespace-approach.
But I'm not able, to get the run-as part of the configuration back to work.
I always get this error:
Here is my new namespace-configuration:Code:Error creating bean with name 'org.springframework.security.web.access.intercept.FilterSecurityInterceptor#0': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Unsupported configuration attributes: [RUN_AS_SMALLADS]
For clearity, I deleted all intercept-url rules except the one, which is causing the error.Code:<?xml version="1.0" encoding="UTF-8"?> <beans:beans xmlns="http://www.springframework.org/schema/security" xmlns:beans="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.0.xsd"> <global-method-security run-as-manager-ref="runAsManager"/> <http use-expressions="false"> <intercept-url pattern="/kleinanzeigen/**/merken/*.html" access="ROLE_USER,RUN_AS_SMALLADS" requires-channel="https"/> <form-login /> <logout /> <remember-me key="XX"/> </http> <beans:bean id="runAsManager" class="org.springframework.security.access.intercept.RunAsManagerImpl"> <beans:property name="key" value="XX"/> </beans:bean> <beans:bean id="runAsAuthenticationProvider" class="org.springframework.security.access.intercept.RunAsImplAuthenticationProvider"> <beans:property name="key" value="XX"/> </beans:bean> <authentication-manager alias="authenticationManager"> <authentication-provider ref="daoAuthenticationProvider"/> <authentication-provider ref="runAsAuthenticationProvider"/> </authentication-manager> </beans:beans>
In the old bean-style configuration the notation:
did the same job.Code:/kleinanzeigen/**/merken/*.html*=ROLE_ADMIN,ROLE_USER,RUN_AS_SMALLADS
I found this thread, with a solution, but they don't have my problem, because they are only using the run-as manager at the method-level.
The thread also points to the issue-entry SEC-1118, but I'm not sure, if that fix made it into 3.0.2, because I can't find the mentioned "run-as-manager-ref" in the XSD-file for Spring-Security 3.0.x
I hope, someone can give me a hint on this problem, because I'm working on this problem for two days now and I'm totally lost!


