SEC-1342: Introduced extra factory method in SecurityConfig to get round problem with Spring converting a string with commas to an array

This commit is contained in:
Luke Taylor
2009-12-23 14:12:59 +00:00
parent 115d5b84ff
commit bcb1ff8921
3 changed files with 7 additions and 3 deletions

View File

@@ -1004,7 +1004,7 @@ public class HttpSecurityBeanDefinitionParserTests {
public void expressionBasedAccessAllowsAndDeniesAccessAsExpected() throws Exception {
setContext(
" <http auto-config='true' use-expressions='true'>" +
" <intercept-url pattern='/secure*' access=\"hasRole('ROLE_A')\" />" +
" <intercept-url pattern='/secure*' access=\"hasAnyRole('ROLE_A','ROLE_C')\" />" +
" <intercept-url pattern='/**' access='permitAll()' />" +
" </http>" + AUTH_PROVIDER_XML);