Avoid super.doTrace for ERROR dispatches

Closes gh-31457
This commit is contained in:
rstoyanchev
2023-10-24 12:58:11 +01:00
parent 5c6b9be3a1
commit 4dab35205d

View File

@@ -982,7 +982,10 @@ public abstract class FrameworkServlet extends HttpServletBean implements Applic
return;
}
}
super.doTrace(request, response);
// Work around until https://github.com/jakartaee/servlet/pull/545 is fixed and in use
if (request.getDispatcherType() != DispatcherType.ERROR) {
super.doTrace(request, response);
}
}
/**