Browse Source

Avoid super.doTrace for ERROR dispatches

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

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

@ -982,7 +982,10 @@ public abstract class FrameworkServlet extends HttpServletBean implements Applic @@ -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);
}
}
/**

Loading…
Cancel
Save