Bug 60174 - HeadersTooLargeException should be logged
Summary: HeadersTooLargeException should be logged
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 8
Classification: Unclassified
Component: Catalina (show other bugs)
Version: 8.5.5
Hardware: PC Linux
: P2 minor (vote)
Target Milestone: ----
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
: 63397 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-09-26 19:23 UTC by Marcel Witte
Modified: 2019-05-13 16:24 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. ***