JDK-8200671 : java.util.zip.ZipException: invalid distance too far back in 8u151
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util.jar
  • Affected Version: 8u151
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2018-04-03
  • Updated: 2018-06-12
  • Resolved: 2018-06-12
Related Reports
Duplicate :  
Description
A web application compresses and decompresses files which works fine with 8u144. After moving to 8u151, the same web application throws the following error when decompressing the files.

java.util.zip.ZipException: invalid distance too far back
        at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:164)
        at java.util.zip.ZipInputStream.read(ZipInputStream.java:194)
        at java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:140)
        at sun.tools.jar.Main.extractFile(Main.java:1072)
        at sun.tools.jar.Main.extract(Main.java:981)
        at sun.tools.jar.Main.run(Main.java:311)
        at sun.tools.jar.Main.main(Main.java:1288)
Comments
Suspect JDK-8189789 is root cause.
12-06-2018

I can't reproduce this issue with 8u172 which is due for release shortly. I suspect JDK-8189789 to be root cause. Checking with submitter..
06-04-2018