eclipse-ee4j / eclipse-ee4j/jersey
LoggingFilter works not properly when GZIPEncoding filter is enabled
- Dominant language
- Java
- Stars
- 730
- Forks
- 382
- PR merge metrics
- No merged PRs in 30d
Description
I have the LogginFilter filter registered in my Application.java like this:
register(new LoggingFilter(LOGGER, true));
and I also have the GZIPEncoding filter enabled like this:
register(GZipEncoder.class);
But the issue now is that that logging filter is outputting the response entity compressed, just like someone posted: [http://stackoverflow.com/questions/28091959/jersey-2-logging-and-gzip](http://stackoverflow.com/questions/28091959/jersey-2-logging-and-gzip)
#### Environment
Jersery 2.21 WINDOWS 7 64bit, JDK 1.7.0_79 64bit, tomcat 7.0.62 64bit log4j2 ver 2.1
#### Affected Versions
[2.21]
Contributor guide
Research direction
Start by reproducing the interaction between LoggingFilter and GZipEncoder using the Application.java registration shown in the issue. Read the LoggingFilter and GZipEncoder implementations and their related tests, if present, to determine where compression reaches response logging. Done means the logging output is useful and not the compressed response entity when GZIP encoding is enabled.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100