Uploaded image for project: 'Jackrabbit FileVault'
  1. Jackrabbit FileVault
  2. JCRVLT-257

ZipException: invalid code lengths set

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 3.1.40, 3.1.42
    • 3.1.44
    • Packaging
    • None
    • Java(TM) SE Runtime Environment (build 1.8.0_151-b12)
      zlib version 1.2.11

    Description

      I'm running into the following exception:

      ...
      Caused by: java.util.zip.ZipException: invalid code lengths set
              at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:164)
              at java.util.zip.ZipInputStream.read(ZipInputStream.java:194)
              at org.apache.jackrabbit.vault.fs.io.ZipStreamArchive.copyToBuffer(ZipStreamArchive.java:228)
              at org.apache.jackrabbit.vault.fs.io.ZipStreamArchive.copy(ZipStreamArchive.java:215)
              at org.apache.jackrabbit.vault.fs.io.ZipStreamArchive.open(ZipStreamArchive.java:159)
              at org.apache.sling.distribution.serialization.impl.vlt.FileVaultContentSerializer.importFromStream(FileVaultContentSerializer.java:130)
              ... 112 common frames omitted
      

      running Apache Sling Content Distribution on an AEM instance. It looks like the Zipfile exported by JarExporter is broken in certain cases - though I didn't find a unit test for that so far.

      Anyway I'm quite sure that its caused by JCRVLT-163.

      To workaround the compression of the entire file can to be set to NO_COMPRESSION.

      Attachments

        1. distributionpackage.zip
          5.35 MB
          Dirk Rudolph

        Issue Links

          Activity

            People

              Unassigned Unassigned
              diru Dirk Rudolph
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: