Bug 63737 - Compression may not work when there are multiple Accept-Encoding headers in the request
Summary: Compression may not work when there are multiple Accept-Encoding headers in t...
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 9
Classification: Unclassified
Component: Connectors (show other bugs)
Version: 9.0.x
Hardware: PC All
: P2 normal (vote)
Target Milestone: -----
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-08 07:19 UTC by Andy Wilkinson
Modified: 2019-09-10 20:00 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andy Wilkinson 2019-09-08 07:19:10 UTC
This was originally reported as a Spring Boot issue [1].

CompressionConfig only considers a single Accept-Encoding request header. When the request contains more than one such header, compression may not be used depending on which of the headers in considered.

The problem also occurs with 8.5.x.

[1] https://github.com/spring-projects/spring-boot/issues/18176
Comment 1 Mark Thomas 2019-09-10 20:00:32 UTC
There were other issues with the parsing such as xxgzip being treated as meaning gzip was supported. Those have been fixed as well.

Fixed in:
- master for 9.0.25 onwards
- 8.5.x for 8.5.46 onwards
- 7.0.x for 7.0.97 onwards