mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-27 06:12:27 +00:00
SEC-539: Removed filterApplied boolean.
This commit is contained in:
parent
e8d11f28f2
commit
27ef2caf45
@ -218,7 +218,6 @@ public class HttpSessionContextIntegrationFilter implements InitializingBean, Fi
|
|||||||
|
|
||||||
// Proceed with chain
|
// Proceed with chain
|
||||||
int contextWhenChainProceeded = SecurityContextHolder.getContext().hashCode();
|
int contextWhenChainProceeded = SecurityContextHolder.getContext().hashCode();
|
||||||
boolean filterApplied = true;
|
|
||||||
|
|
||||||
request.setAttribute(FILTER_APPLIED, Boolean.TRUE);
|
request.setAttribute(FILTER_APPLIED, Boolean.TRUE);
|
||||||
|
|
||||||
@ -234,9 +233,7 @@ public class HttpSessionContextIntegrationFilter implements InitializingBean, Fi
|
|||||||
// Store context back to HttpSession
|
// Store context back to HttpSession
|
||||||
storeSecurityContextInSession(request, httpSessionExistedAtStartOfRequest, contextWhenChainProceeded);
|
storeSecurityContextInSession(request, httpSessionExistedAtStartOfRequest, contextWhenChainProceeded);
|
||||||
|
|
||||||
if (filterApplied) {
|
request.removeAttribute(FILTER_APPLIED);
|
||||||
request.removeAttribute(FILTER_APPLIED);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Remove SecurityContextHolder contents
|
// Remove SecurityContextHolder contents
|
||||||
SecurityContextHolder.clearContext();
|
SecurityContextHolder.clearContext();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user