This is an automated email from the ASF dual-hosted git repository. markt 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 0461717fc0 Fix 66233 - include error message with 400 response for too many cookies 0461717fc0 is described below commit 0461717fc03c176e6da7b947b75c6ded7b879e1b Author: Mark Thomas <ma...@apache.org> AuthorDate: Wed Aug 24 11:50:06 2022 +0100 Fix 66233 - include error message with 400 response for too many cookies https://bz.apache.org/bugzilla/show_bug.cgi?id=66233 --- java/org/apache/catalina/connector/CoyoteAdapter.java | 2 +- webapps/docs/changelog.xml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/java/org/apache/catalina/connector/CoyoteAdapter.java b/java/org/apache/catalina/connector/CoyoteAdapter.java index aed20f3a93..f9263b685d 100644 --- a/java/org/apache/catalina/connector/CoyoteAdapter.java +++ b/java/org/apache/catalina/connector/CoyoteAdapter.java @@ -752,7 +752,7 @@ public class CoyoteAdapter implements Adapter { // Too many cookies if (!response.isError()) { response.setError(); - response.sendError(400); + response.sendError(400, e.getMessage()); } return true; } diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml index c8a5a7b38f..9779e91b40 100644 --- a/webapps/docs/changelog.xml +++ b/webapps/docs/changelog.xml @@ -148,6 +148,10 @@ session persistence and restoration occurs during the authentication process. (markt) </fix> + <fix> + <bug>66233</bug>: Include an error message when sending a 400 response + because a request has too many cookies. (markt) + </fix> </changelog> </subsection> <subsection name="Coyote"> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org