SEC-1639: FirewalledRequest is now called on the specific FirewalledRequest instance rather that looping through ServletRequestWrappers.
VirtualFilterChain now accepts the FirewalledRequest in the constructor. The reset method is called directly on the instance passed in instead of looping through the ServletRequestWrappers.
@ -160,7 +159,7 @@ public class FilterChainProxy extends GenericFilterBean {
@@ -160,7 +159,7 @@ public class FilterChainProxy extends GenericFilterBean {
@ -287,15 +286,17 @@ public class FilterChainProxy extends GenericFilterBean {
@@ -287,15 +286,17 @@ public class FilterChainProxy extends GenericFilterBean {
@ -305,7 +306,7 @@ public class FilterChainProxy extends GenericFilterBean {
@@ -305,7 +306,7 @@ public class FilterChainProxy extends GenericFilterBean {
}
// Deactivate path stripping as we exit the security filter chain
resetWrapper(request);
this.firewalledRequest.reset();
originalChain.doFilter(request,response);
}else{
@ -322,16 +323,6 @@ public class FilterChainProxy extends GenericFilterBean {
@@ -322,16 +323,6 @@ public class FilterChainProxy extends GenericFilterBean {