mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
WW-5352 Ensure allowlist is cleared if in unexpected state
This commit is contained in:
@@ -219,6 +219,10 @@ public class ParametersInterceptor extends MethodFilterInterceptor {
|
||||
Map<String, Parameter> acceptableParameters;
|
||||
ValueStack newStack;
|
||||
try {
|
||||
if (!threadAllowlist.getAllowlist().isEmpty()) {
|
||||
LOG.error("Thread allowlist was utilised but not cleared", new IllegalStateException());
|
||||
threadAllowlist.clearAllowlist();
|
||||
}
|
||||
acceptableParameters = toAcceptableParameters(parameters, action); // Side-effect: Allowlist required types
|
||||
|
||||
newStack = toNewStack(stack);
|
||||
|
||||
Reference in New Issue
Block a user