You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2022/08/24 10:50:29 UTC
[tomcat] branch 10.0.x updated: Fix 66233 - include error message with 400 response for too many cookies
This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 10.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.0.x by this push:
new 5c7a6dfac2 Fix 66233 - include error message with 400 response for too many cookies
5c7a6dfac2 is described below
commit 5c7a6dfac2a055a57fdf4eac5cd13946f8d5fda4
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 200a2adb3b..9cbb9783e8 100644
--- a/java/org/apache/catalina/connector/CoyoteAdapter.java
+++ b/java/org/apache/catalina/connector/CoyoteAdapter.java
@@ -744,7 +744,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 b942d8be66..9e29c91699 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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org