This is an automated email from the ASF dual-hosted git repository. remm pushed a commit to branch 9.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push: new bfb6ffcad7 Avoid sendError ISE bfb6ffcad7 is described below commit bfb6ffcad7cea76712f5e398fb4c19a5d10248ac Author: remm <r...@apache.org> AuthorDate: Tue Apr 9 14:23:35 2024 +0200 Avoid sendError ISE BZ68862 --- java/org/apache/catalina/filters/FailedRequestFilter.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/java/org/apache/catalina/filters/FailedRequestFilter.java b/java/org/apache/catalina/filters/FailedRequestFilter.java index 2d14bac26d..8d4e451c6b 100644 --- a/java/org/apache/catalina/filters/FailedRequestFilter.java +++ b/java/org/apache/catalina/filters/FailedRequestFilter.java @@ -87,7 +87,11 @@ public class FailedRequestFilter extends FilterBase { break; } - ((HttpServletResponse) response).sendError(status); + try { + ((HttpServletResponse) response).sendError(status); + } catch (IllegalStateException e) { + // Already committed, ignore + } return; } chain.doFilter(request, response); --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org