SEC-722: Fixed problem with empty loginpage string (rather than null) preventing default login page filter from being added to the stack.
This commit is contained in:
@@ -122,6 +122,17 @@ public class HttpSecurityBeanDefinitionParserTests {
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
public void formLoginWithNoLoginPageAddsDefaultLoginPageFilter() {
|
||||
setContext(
|
||||
" <http auto-config='true' path-type='ant' lowercase-comparisons='false'>" +
|
||||
" <form-login />" +
|
||||
" </http>" + AUTH_PROVIDER_XML);
|
||||
FilterChainProxy filterChainProxy = getFilterChainProxy();
|
||||
// These will be matched by the default pattern "/**"
|
||||
checkAutoConfigFilters(filterChainProxy.getFilters("/anything"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void lowerCaseComparisonIsRespectedBySecurityFilterInvocationDefinitionSource() throws Exception {
|
||||
setContext(
|
||||
|
||||
Reference in New Issue
Block a user