Skip to content

Commit

Permalink
WW-5352 Ensure allowlist is cleared if in unexpected state
Browse files Browse the repository at this point in the history
  • Loading branch information
kusalk committed Jan 9, 2024
1 parent 4255da3 commit bf3f407
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,10 @@ protected void applyParameters(final Object action, ValueStack stack, HttpParame
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);
Expand Down

0 comments on commit bf3f407

Please sign in to comment.