Browse Source

Avoid super.doTrace for ERROR dispatches

Closes gh-31457
pull/31491/head
rstoyanchev 2 years ago
parent
commit
4dab35205d
  1. 3
      spring-webmvc/src/main/java/org/springframework/web/servlet/FrameworkServlet.java

3
spring-webmvc/src/main/java/org/springframework/web/servlet/FrameworkServlet.java

@ -982,8 +982,11 @@ public abstract class FrameworkServlet extends HttpServletBean implements Applic @@ -982,8 +982,11 @@ public abstract class FrameworkServlet extends HttpServletBean implements Applic
return;
}
}
// Work around until https://github.com/jakartaee/servlet/pull/545 is fixed and in use
if (request.getDispatcherType() != DispatcherType.ERROR) {
super.doTrace(request, response);
}
}
/**
* Process this request, publishing an event regardless of the outcome.

Loading…
Cancel
Save