Bug 66233 - when set maxCookieCount 1, request has 5 cookies, the response message is "null"
Summary: when set maxCookieCount 1, request has 5 cookies, the response message is "null"
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 10
Classification: Unclassified
Component: Connectors (show other bugs)
Version: unspecified
Hardware: All All
: P2 minor (vote)
Target Milestone: ------
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-22 07:34 UTC by yong hu
Modified: 2022-08-24 10:51 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yong hu 2022-08-22 07:34:06 UTC
when set maxheadersize 1, and I request 5 headers.
then response is 
```
{
 "type":Exception Report",
 "message":"More than the maximum allowed number of headers,[1], were detected.",
 "description":"The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request rounting)."
} 
```

In my mind, when out of maximum allowed number of cookies.
We need response the definite response message to tell developer or user, how to fix the client error.
Comment 1 Han Li 2022-08-22 09:43:36 UTC
Sounds great. Thanks for your feedback.
Comment 2 Mark Thomas 2022-08-24 10:51:03 UTC
Fixed in:
- 10.1.x for 10.1.0-M18 onwards
- 10.0.x for 10.0.24 onwards
-  9.0.x for  9.0.66 onwards
-  8.5.x for  8.5.83 onwards