-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: 4.5.1
-
Fix Version/s: 4.5.2
-
Component/s: HttpClient (classic)
-
Labels:None
-
Environment:Windows7,
java version "1.8.0_66"
Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
Hello,
I'm using httpclient-4.5.1. Yesterday I received http chunked response with content-encoding header with value "deflate".
Trying to read the compressed content from the response I get an exception with the following stack trace:
java.io.EOFException: Unexpected end of ZLIB input stream at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:240) at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158) at org.apache.http.client.entity.DeflateInputStream.read(DeflateInputStream.java:153) at org.apache.http.client.entity.LazyDecompressingInputStream.read(LazyDecompressingInputStream.java:73)
It seems that when the end of the content is reached, instead of correct closing of the stream, this exception happens.
Can you please confirm the issue and when it could be fixed?
Thank you!
Best Regards,
Svilena Momova
- duplicates
-
HTTPCLIENT-1550 "deflate" encoding issue : java.util.zip.ZipException: invalid stored block lengths
-
- Closed
-