WW-5352 Ensure allowlist is cleared if in unexpected state

This commit is contained in:
Kusal Kithul-Godage
2024-01-09 15:48:35 +11:00
parent 4255da3ee9
commit bf3f407b5f
@@ -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);