Issue Details (XML | Word | Printable)

Key: GLASSFISH-19354
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: oleksiys
Reporter: arosso
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
glassfish

HTTP Double Gzip Compression

Created: 17/Nov/12 07:54 PM   Updated: 12/Mar/13 08:24 PM   Resolved: 12/Mar/13 08:24 PM
Component/s: grizzly-kernel
Affects Version/s: 3.1.2, 3.1.2.2
Fix Version/s: 4.0

Time Tracking:
Not Specified

File Attachments: 1. Zip Archive doublecompression-test.zip (164 kB) 17/Nov/12 07:54 PM - arosso

Environment:

Amazon Linux 2012 09


Tags: grizzly http gzip
Participants: arosso and oleksiys


 Description  « Hide

See: http://www.java.net/forum/topic/glassfish/glassfish/glassfish-double-compression for discussion.

The Grizzly http listener does not detect that a response is already Gzipped and gzips it again causing the output to be garbled. This did not use to happen in Glassfish 2.1.x but seems to happen in 3.1.x.

To reproduce deploy the attached web app directory into Glassfish 3.1.2.2 and access index.html page. Now switch on compression and the output will be garbled.

domain.xml compression settings are:

<http ... compression="on" compressable-mime-type="text/html,text/xml,text/javascript,text/css">



oleksiys added a comment - 12/Mar/13 08:24 PM

fixed in GF 4


oleksiys added a comment - 19/Nov/12 10:29 AM