I'm having same behaviour with 0.9 snapshot build.
FilterSecurityInterceptor looks something like
Code:
CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
PATTERN_TYPE_APACHE_ANT
/admin/**=ROLE_ADMIN,ROLE_SUPERVISOR
/index.jsp=ROLE_ANONYMOUS,ROLE_EMPLOYER,ROLE_ADMIN,ROLE_SUPERVISOR
/login.do*=ROLE_ANONYMOUS,ROLE_EMPLOYER,ROLE_ADMIN,ROLE_SUPERVISOR
/css/**=ROLE_ANONYMOUS,ROLE_EMPLOYER,ROLE_ADMIN,ROLE_SUPERVISOR
/img/**=ROLE_ANONYMOUS,ROLE_EMPLOYER,ROLE_ADMIN,ROLE_SUPERVISOR
/default.do*=ROLE_ANONYMOUS,ROLE_EMPLOYER,ROLE_ADMIN,ROLE_SUPERVISOR
/**=ROLE_EMPLOYER,ROLE_ADMIN,ROLE_SUPERVISOR
Debug shows
Code:
DEBUG SecurityEnforcementFilter:185 - Chain processed normally
DEBUG HttpSessionContextIntegrationFilter:270 - SecurityContext stored to HttpSession: 'net.sf.acegisecurity.context.SecurityContextImpl@1f0a2a0: Null authentication'
DEBUG HttpSessionContextIntegrationFilter:279 - SecurityContextHolder set to new context, as request processing completed
DEBUG TransactionSynchronizationManager:184 - Removed value [org.springframework.orm.hibernate3.SessionHolder@45f4ae] for key [org.hibernate.impl.SessionFactoryImpl@1154718] from thread [http-8080-Processor24]
DEBUG TransactionSynchronizationManager:161 - Bound value [org.springframework.orm.hibernate3.SessionHolder@754384] for key [org.hibernate.impl.SessionFactoryImpl@1154718] to thread [http-8080-Processor25]
DEBUG PathBasedFilterInvocationDefinitionMap:110 - Converted URL to lowercase, from: '/login.do'; to: '/login.do'
DEBUG PathBasedFilterInvocationDefinitionMap:121 - Candidate is: '/login.do'; pattern is /**; matched=true
DEBUG FilterChainProxy:297 - /login.do at position 1 of 5 in additional filter chain; firing Filter: 'net.sf.acegisecurity.context.HttpSessionContextIntegrationFilter@cdc97b'
DEBUG HttpSessionContextIntegrationFilter:176 - Obtained from ACEGI_SECURITY_CONTEXT a valid SecurityContext and set to SecurityContextHolder: 'net.sf.acegisecurity.context.SecurityContextImpl@1f0a2a0: Null authentication'
DEBUG FilterChainProxy:297 - /login.do at position 2 of 5 in additional filter chain; firing Filter: 'net.sf.acegisecurity.ui.webapp.AuthenticationProcessingFilter@8bb9d1'
DEBUG FilterChainProxy:297 - /login.do at position 3 of 5 in additional filter chain; firing Filter: 'net.sf.acegisecurity.wrapper.ContextHolderAwareRequestFilter@fdf48d'
DEBUG FilterChainProxy:297 - /login.do at position 4 of 5 in additional filter chain; firing Filter: 'net.sf.acegisecurity.providers.anonymous.AnonymousProcessingFilter@fe8c4'
DEBUG AnonymousProcessingFilter:95 - Replaced SecurityContextHolder with anonymous token: 'net.sf.acegisecurity.providers.anonymous.AnonymousAuthenticationToken@a3c5b6: Username: anonymousUser; Password: [PROTECTED]; Authenticated: true; Details: null; Granted Authorities: ROLE_ANONYMOUS'
DEBUG FilterChainProxy:297 - /login.do at position 5 of 5 in additional filter chain; firing Filter: 'net.sf.acegisecurity.intercept.web.SecurityEnforcementFilter@ee5a06'
DEBUG PathBasedFilterInvocationDefinitionMap:110 - Converted URL to lowercase, from: '/login.do'; to: '/login.do'
DEBUG PathBasedFilterInvocationDefinitionMap:121 - Candidate is: '/login.do'; pattern is /admin/**; matched=false
DEBUG PathBasedFilterInvocationDefinitionMap:121 - Candidate is: '/login.do'; pattern is /index.jsp; matched=false
DEBUG PathBasedFilterInvocationDefinitionMap:121 - Candidate is: '/login.do'; pattern is /login.do*; matched=true
DEBUG AbstractSecurityInterceptor:372 - Secure object: FilterInvocation: URL: /login.do; ConfigAttributes: [ROLE_ANONYMOUS, ROLE_EMPLOYER, ROLE_ADMIN, ROLE_SUPERVISOR]
DEBUG AbstractSecurityInterceptor:415 - Previously Authenticated: net.sf.acegisecurity.providers.anonymous.AnonymousAuthenticationToken@a3c5b6: Username: anonymousUser; Password: [PROTECTED]; Authenticated: true; Details: null; Granted Authorities: ROLE_ANONYMOUS
DEBUG AbstractSecurityInterceptor:432 - Authorization successful
DEBUG AbstractSecurityInterceptor:445 - RunAsManager did not change Authentication object
DEBUG FilterChainProxy:288 - /login.do reached end of additional filter chain; proceeding with original chain
DEBUG ModuleUtils:167 - Get module name for path /login.do
DEBUG ModuleUtils:191 - Module name found: default
DEBUG RequestProcessor:172 - Processing a 'GET' for path '/login'
DEBUG TilesRequestProcessor:233 - uri=/jsp/layoutBase.jsp doInclude=false
DEBUG InsertTag:863 - insert page='/jsp/logon.jsp'.
DEBUG SecurityEnforcementFilter:185 - Chain processed normally
DEBUG HttpSessionContextIntegrationFilter:270 - SecurityContext stored to HttpSession: 'net.sf.acegisecurity.context.SecurityContextImpl@1f0a2a0: Null authentication'
DEBUG TransactionSynchronizationManager:161 - Bound value [org.springframework.orm.hibernate3.SessionHolder@94cc7] for key [org.hibernate.impl.SessionFactoryImpl@1154718] to thread [http-8080-Processor24]
DEBUG PathBasedFilterInvocationDefinitionMap:110 - Converted URL to lowercase, from: '/css/markup.css'; to: '/css/markup.css'
DEBUG PathBasedFilterInvocationDefinitionMap:121 - Candidate is: '/css/markup.css'; pattern is /**; matched=true
DEBUG FilterChainProxy:297 - /css/markup.css at position 1 of 5 in additional filter chain; firing Filter: 'net.sf.acegisecurity.context.HttpSessionContextIntegrationFilter@cdc97b'
DEBUG HttpSessionContextIntegrationFilter:279 - SecurityContextHolder set to new context, as request processing completed
DEBUG HttpSessionContextIntegrationFilter:176 - Obtained from ACEGI_SECURITY_CONTEXT a valid SecurityContext and set to SecurityContextHolder: 'net.sf.acegisecurity.context.SecurityContextImpl@1f0a2a0: Null authentication'
DEBUG TransactionSynchronizationManager:184 - Removed value [org.springframework.orm.hibernate3.SessionHolder@754384] for key [org.hibernate.impl.SessionFactoryImpl@1154718] from thread [http-8080-Processor25]
DEBUG FilterChainProxy:297 - /css/markup.css at position 2 of 5 in additional filter chain; firing Filter: 'net.sf.acegisecurity.ui.webapp.AuthenticationProcessingFilter@8bb9d1'
DEBUG FilterChainProxy:297 - /css/markup.css at position 3 of 5 in additional filter chain; firing Filter: 'net.sf.acegisecurity.wrapper.ContextHolderAwareRequestFilter@fdf48d'
DEBUG FilterChainProxy:297 - /css/markup.css at position 4 of 5 in additional filter chain; firing Filter: 'net.sf.acegisecurity.providers.anonymous.AnonymousProcessingFilter@fe8c4'
DEBUG AnonymousProcessingFilter:95 - Replaced SecurityContextHolder with anonymous token: 'net.sf.acegisecurity.providers.anonymous.AnonymousAuthenticationToken@8fa0f0: Username: anonymousUser; Password: [PROTECTED]; Authenticated: true; Details: null; Granted Authorities: ROLE_ANONYMOUS'
DEBUG FilterChainProxy:297 - /css/markup.css at position 5 of 5 in additional filter chain; firing Filter: 'net.sf.acegisecurity.intercept.web.SecurityEnforcementFilter@ee5a06'
DEBUG PathBasedFilterInvocationDefinitionMap:110 - Converted URL to lowercase, from: '/css/markup.css'; to: '/css/markup.css'
DEBUG PathBasedFilterInvocationDefinitionMap:121 - Candidate is: '/css/markup.css'; pattern is /admin/**; matched=false
DEBUG PathBasedFilterInvocationDefinitionMap:121 - Candidate is: '/css/markup.css'; pattern is /index.jsp; matched=false
DEBUG PathBasedFilterInvocationDefinitionMap:121 - Candidate is: '/css/markup.css'; pattern is /login.do*; matched=false
DEBUG PathBasedFilterInvocationDefinitionMap:121 - Candidate is: '/css/markup.css'; pattern is /css/**; matched=true
DEBUG AbstractSecurityInterceptor:372 - Secure object: FilterInvocation: URL: /css/markup.css; ConfigAttributes: [ROLE_ANONYMOUS, ROLE_EMPLOYER, ROLE_ADMIN, ROLE_SUPERVISOR]
DEBUG AbstractSecurityInterceptor:415 - Previously Authenticated: net.sf.acegisecurity.providers.anonymous.AnonymousAuthenticationToken@8fa0f0: Username: anonymousUser; Password: [PROTECTED]; Authenticated: true; Details: null; Granted Authorities: ROLE_ANONYMOUS
DEBUG AbstractSecurityInterceptor:432 - Authorization successful
DEBUG AbstractSecurityInterceptor:445 - RunAsManager did not change Authentication object
DEBUG FilterChainProxy:288 - /css/markup.css reached end of additional filter chain; proceeding with original chain
(Using Tomcat, Struts with Tiles)
somehow I get redirected to .css page instead of login.do action after authentication.