@ -172,13 +175,16 @@ public class HttpSessionContextIntegrationFilter implements InitializingBean, Fi
@@ -172,13 +175,16 @@ public class HttpSessionContextIntegrationFilter implements InitializingBean, Fi
"If using forceEagerSessionCreation, you must set allowSessionCreation to also be true");
}
@ -190,59 +196,60 @@ public class HttpSessionContextIntegrationFilter implements InitializingBean, Fi
@@ -190,59 +196,60 @@ public class HttpSessionContextIntegrationFilter implements InitializingBean, Fi
.warn("ACEGI_SECURITY_CONTEXT did not contain a SecurityContext but contained: '"
@ -255,60 +262,66 @@ public class HttpSessionContextIntegrationFilter implements InitializingBean, Fi
@@ -255,60 +262,66 @@ public class HttpSessionContextIntegrationFilter implements InitializingBean, Fi
@ -317,23 +330,24 @@ public class HttpSessionContextIntegrationFilter implements InitializingBean, Fi
@@ -317,23 +330,24 @@ public class HttpSessionContextIntegrationFilter implements InitializingBean, Fi
+"(because the allowSessionCreation property is false) - SecurityContext thus not "
.debug("HttpSession is null, but SecurityContextHolder has not changed from default: ' "
+SecurityContextHolder.getContext()
+SecurityContextHolder
.getContext()
+"'; not creating HttpSession or storing SecurityContextHolder contents");
}
}
@ -345,11 +359,12 @@ public class HttpSessionContextIntegrationFilter implements InitializingBean, Fi
@@ -345,11 +359,12 @@ public class HttpSessionContextIntegrationFilter implements InitializingBean, Fi
logger.debug("SecurityContext stored to HttpSession: '"+SecurityContextHolder.getContext()
+"'");
logger.debug("SecurityContext stored to HttpSession: '"
+SecurityContextHolder.getContext()+"'");
}
}
@ -361,20 +376,22 @@ public class HttpSessionContextIntegrationFilter implements InitializingBean, Fi
@@ -361,20 +376,22 @@ public class HttpSessionContextIntegrationFilter implements InitializingBean, Fi
SecurityContextHolder.clearContext();
if(logger.isDebugEnabled()){
logger.debug("SecurityContextHolder set to new context, as request processing completed");
logger
.debug("SecurityContextHolder set to new context, as request processing completed");
@ -386,9 +403,11 @@ public class HttpSessionContextIntegrationFilter implements InitializingBean, Fi
@@ -386,9 +403,11 @@ public class HttpSessionContextIntegrationFilter implements InitializingBean, Fi
@ -54,9 +56,11 @@ public class HttpSessionContextIntegrationFilterTests extends TestCase {
@@ -54,9 +56,11 @@ public class HttpSessionContextIntegrationFilterTests extends TestCase {
@ -65,11 +69,11 @@ public class HttpSessionContextIntegrationFilterTests extends TestCase {
@@ -65,11 +69,11 @@ public class HttpSessionContextIntegrationFilterTests extends TestCase {
@ -110,8 +114,12 @@ public class HttpSessionContextIntegrationFilterTests extends TestCase {
@@ -110,8 +114,12 @@ public class HttpSessionContextIntegrationFilterTests extends TestCase {
// Build a Context to store in HttpSession (simulating prior request)
SecurityContextsc=newSecurityContextImpl();
@ -119,10 +127,13 @@ public class HttpSessionContextIntegrationFilterTests extends TestCase {
@@ -119,10 +127,13 @@ public class HttpSessionContextIntegrationFilterTests extends TestCase {
@ -131,26 +142,39 @@ public class HttpSessionContextIntegrationFilterTests extends TestCase {
@@ -131,26 +142,39 @@ public class HttpSessionContextIntegrationFilterTests extends TestCase {
// Build a Context to store in HttpSession (simulating prior request)
SecurityContextsc=newSecurityContextImpl();
@ -158,10 +182,13 @@ public class HttpSessionContextIntegrationFilterTests extends TestCase {
@@ -158,10 +182,13 @@ public class HttpSessionContextIntegrationFilterTests extends TestCase {
@ -169,19 +196,26 @@ public class HttpSessionContextIntegrationFilterTests extends TestCase {
@@ -169,19 +196,26 @@ public class HttpSessionContextIntegrationFilterTests extends TestCase {
@ -191,20 +225,24 @@ public class HttpSessionContextIntegrationFilterTests extends TestCase {
@@ -191,20 +225,24 @@ public class HttpSessionContextIntegrationFilterTests extends TestCase {
@ -217,7 +255,8 @@ public class HttpSessionContextIntegrationFilterTests extends TestCase {
@@ -217,7 +255,8 @@ public class HttpSessionContextIntegrationFilterTests extends TestCase {
@ -236,7 +275,8 @@ public class HttpSessionContextIntegrationFilterTests extends TestCase {
@@ -236,7 +275,8 @@ public class HttpSessionContextIntegrationFilterTests extends TestCase {
@ -244,14 +284,18 @@ public class HttpSessionContextIntegrationFilterTests extends TestCase {
@@ -244,14 +284,18 @@ public class HttpSessionContextIntegrationFilterTests extends TestCase {
@ -262,34 +306,75 @@ public class HttpSessionContextIntegrationFilterTests extends TestCase {
@@ -262,34 +306,75 @@ public class HttpSessionContextIntegrationFilterTests extends TestCase {
@ -301,6 +386,38 @@ public class HttpSessionContextIntegrationFilterTests extends TestCase {
@@ -301,6 +386,38 @@ public class HttpSessionContextIntegrationFilterTests extends TestCase {