1
0
mirror of synced 2026-07-19 09:35:12 +00:00

SEC-539: Removed filterApplied boolean.

This commit is contained in:
Luke Taylor
2007-08-28 19:56:33 +00:00
parent e8d11f28f2
commit 27ef2caf45
@@ -218,7 +218,6 @@ public class HttpSessionContextIntegrationFilter implements InitializingBean, Fi
// Proceed with chain
int contextWhenChainProceeded = SecurityContextHolder.getContext().hashCode();
boolean filterApplied = true;
request.setAttribute(FILTER_APPLIED, Boolean.TRUE);
@@ -234,9 +233,7 @@ public class HttpSessionContextIntegrationFilter implements InitializingBean, Fi
// Store context back to HttpSession
storeSecurityContextInSession(request, httpSessionExistedAtStartOfRequest, contextWhenChainProceeded);
if (filterApplied) {
request.removeAttribute(FILTER_APPLIED);
}
request.removeAttribute(FILTER_APPLIED);
// Remove SecurityContextHolder contents
SecurityContextHolder.clearContext();