This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 8.5.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/8.5.x by this push:
new d50929c327 Fix 66233 - include error message with 400 response for too
many cookies
d50929c327 is described below
commit d50929c3275fffb1f82b38d6bd782630b5eb2cb7
Author: Mark Thomas <[email protected]>
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 3c02626c20..ed5d5fc31d 100644
--- a/java/org/apache/catalina/connector/CoyoteAdapter.java
+++ b/java/org/apache/catalina/connector/CoyoteAdapter.java
@@ -756,7 +756,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 f956088b6a..a7feba22fb 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -127,6 +127,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: [email protected]
For additional commands, e-mail: [email protected]