Fix for SEC-159. Added clearContext() method to SecurityContextHolder and refactored code to use it instead of putting an empty context into the holder.
@ -279,7 +279,7 @@ public class HttpSessionContextIntegrationFilter implements InitializingBean,
@@ -279,7 +279,7 @@ public class HttpSessionContextIntegrationFilter implements InitializingBean,
@ -123,7 +123,7 @@ public class ContextPropagatingRemoteInvocation extends RemoteInvocation {
@@ -123,7 +123,7 @@ public class ContextPropagatingRemoteInvocation extends RemoteInvocation {
@ -66,7 +66,7 @@ public class ContextPropagatingRemoteInvocationTests extends TestCase {
@@ -66,7 +66,7 @@ public class ContextPropagatingRemoteInvocationTests extends TestCase {
// Set to null, as ContextPropagatingRemoteInvocation already obtained
// a copy and nulling is necessary to ensure the Context delivered by
// ContextPropagatingRemoteInvocation is used on server-side
@ -176,7 +176,7 @@ public class FilterSecurityInterceptorTests extends TestCase {
@@ -176,7 +176,7 @@ public class FilterSecurityInterceptorTests extends TestCase {
@ -233,7 +233,7 @@ public class FilterSecurityInterceptorTests extends TestCase {
@@ -233,7 +233,7 @@ public class FilterSecurityInterceptorTests extends TestCase {
@ -164,12 +164,12 @@ public class AnonymousProcessingFilterTests extends TestCase {
@@ -164,12 +164,12 @@ public class AnonymousProcessingFilterTests extends TestCase {
@ -111,11 +111,11 @@ public class SecurityContextLoginModuleTests extends TestCase {
@@ -111,11 +111,11 @@ public class SecurityContextLoginModuleTests extends TestCase {
@ -98,6 +98,6 @@ public class AuthorizeTagAttributeTests extends TestCase {
@@ -98,6 +98,6 @@ public class AuthorizeTagAttributeTests extends TestCase {
@ -73,7 +73,7 @@ public class AuthorizeTagCustomGrantedAuthorityTests extends TestCase {
@@ -73,7 +73,7 @@ public class AuthorizeTagCustomGrantedAuthorityTests extends TestCase {
@ -81,6 +81,6 @@ public class AuthorizeTagExpressionLanguageTests extends TestCase {
@@ -81,6 +81,6 @@ public class AuthorizeTagExpressionLanguageTests extends TestCase {
@ -419,12 +419,12 @@ public class AbstractProcessingFilterTests extends TestCase {
@@ -419,12 +419,12 @@ public class AbstractProcessingFilterTests extends TestCase {
@ -67,7 +67,7 @@ public class ExceptionTranslationFilterTests extends TestCase {
@@ -67,7 +67,7 @@ public class ExceptionTranslationFilterTests extends TestCase {
@ -74,7 +74,7 @@ public class BasicProcessingFilterTests extends MockObjectTestCase {
@@ -74,7 +74,7 @@ public class BasicProcessingFilterTests extends MockObjectTestCase {
// Create User Details Service, provider and authentication manager
InMemoryDaoImpldao=newInMemoryDaoImpl();
@ -97,7 +97,7 @@ public class BasicProcessingFilterTests extends MockObjectTestCase {
@@ -97,7 +97,7 @@ public class BasicProcessingFilterTests extends MockObjectTestCase {
@ -86,7 +86,7 @@ public class DigestProcessingFilterTests extends MockObjectTestCase {
@@ -86,7 +86,7 @@ public class DigestProcessingFilterTests extends MockObjectTestCase {
@ -107,7 +107,7 @@ public class DigestProcessingFilterTests extends MockObjectTestCase {
@@ -107,7 +107,7 @@ public class DigestProcessingFilterTests extends MockObjectTestCase {
@ -76,12 +76,12 @@ public class RememberMeProcessingFilterTests extends TestCase {
@@ -76,12 +76,12 @@ public class RememberMeProcessingFilterTests extends TestCase {