This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/main by this push:
     new 4f9dc7f4a0 Fix 66233 - include error message with 400 response for too 
many cookies
4f9dc7f4a0 is described below

commit 4f9dc7f4a0959d8aab7b8f5c04e17a7f039b3ba2
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 5b5660159f..79cff350f0 100644
--- a/java/org/apache/catalina/connector/CoyoteAdapter.java
+++ b/java/org/apache/catalina/connector/CoyoteAdapter.java
@@ -753,7 +753,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 6e42cb88b7..a9362be59f 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

Reply via email to