Bug 60174

Summary: HeadersTooLargeException should be logged
Product: Tomcat 8 Reporter: Marcel Witte <wittemar>
Component: CatalinaAssignee: Tomcat Developers Mailing List <dev>
Severity: minor CC: chris
Priority: P2    
Version: 8.5.5   
Target Milestone: ----   
Hardware: PC   
OS: Linux   

Description Marcel Witte 2016-09-26 19:23:57 UTC
Today I wasted a few hours with debugging my application, and later in the tomcat code, why some of my requests return just a HTTP 500, while the response objects do have the correct return code, even in the localhost_access_log.

Jersey was set to trace mode, so it is writing a lot of response header data, and there was a hidden HeadersTooLargeException while processing which leads to the 500 response code. There was no log and no sign in the response hinting to look at the response headers. There should be at least an log entry if that exception occures.
Comment 1 Mark Thomas 2016-09-26 20:06:09 UTC
Fair point. Thanks for the report.

This has been fixed in the following branches:
- 9.0.x for 9.0.0.M11 onwards
- 8.5.x for 8.5.6 onwards
- 8.0.x for 8.0.38 onwards
- 7.0.x for 7.0.73 onwards
Comment 2 Mark Thomas 2019-05-13 16:24:31 UTC
*** Bug 63397 has been marked as a duplicate of this bug. ***