[ 
https://issues.apache.org/jira/browse/HTTPCLIENT-1895?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16321630#comment-16321630
 ] 

Sudheera Palihakkara commented on HTTPCLIENT-1895:
--------------------------------------------------

[~olegk] I'm happy to. One question though, For *GzipDecompressingEntity*, RFC 
1952 compliance coming from *GZIPInputStream.java* which is a part of 
_java.util.zip_ package. I was testing in _Oracle's JDK 1.8_ and according to 
[this|https://bugs.java.com/view_bug.do?bug_id=4691425] bug report, RFC 1952 
compatibility was introduced in _6u21_ . Since HTTPCLIENT-1895 is reported 
against version _4.5.4_ and that is supposed to be built on _Java 1.6 _ it will 
be problematic to incorporate this test case in the code isn't it? Also I'm not 
sure about the compliance of other JDK implementations.

> GzipDecompressingEntity ignores everything but the first GZIP stream, 
> non-compliant with RFC 1952
> -------------------------------------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1895
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1895
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient (classic)
>    Affects Versions: 4.5.4
>            Reporter: Abhijit Sarkar
>             Fix For: 4.6 Alpha1
>
>         Attachments: multi-test.gz
>
>
> For a GZIP stream containing multiple sub streams, 
> {{GzipDecompressingEntity}} ignores everything but the first GZIP stream. 
> This is non-compliant behavior with [RFC 
> 1952|https://tools.ietf.org/html/rfc1952]. Quoting section 2.2:
> {quote}
> A gzip file consists of a series of "members" (compressed data sets).  The 
> format of each member is specified in the following section.  The members 
> simply appear one after another in the file, with no additional information 
> before, between, or after them.
> {quote}
> Detailed discussion about this bug can be found in 
> [square/okhttp#3759|https://github.com/square/okhttp/issues/3759], including 
> [comment|https://github.com/square/okhttp/issues/3759#issuecomment-356110268] 
> from Mark Adler, co-author of GZIP.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to