eclipse-ee4j / eclipse-ee4j/jersey

LoggingFilter works not properly when GZIPEncoding filter is enabled

Open
#3,346 8 comments 0 reactions 0 assignees View on GitHub
Component: containers Component: core Priority: Major Type: Bug
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.