You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Dirk Rudolph (JIRA)" <ji...@apache.org> on 2018/01/07 18:03:01 UTC
[jira] [Commented] (JCRVLT-257) ZipException: invalid code lengths
set
[ https://issues.apache.org/jira/browse/JCRVLT-257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16315405#comment-16315405 ]
Dirk Rudolph commented on JCRVLT-257:
-------------------------------------
See attached a zip file exported with 3.1.42, and what {{unzip}} says about it:
{code}
Dirks-MacBook-Pro:test dirk.rudolph$ unzip jcr%3acontent
Archive: jcr%3acontent
inflating: META-INF/MANIFEST.MF
creating: META-INF/vault/
inflating: META-INF/vault/properties.xml
inflating: META-INF/vault/config.xml
inflating: META-INF/vault/filter.xml
inflating: jcr_root/.content.xml
creating: jcr_root/content/
inflating: jcr_root/content/.content.xml
creating: jcr_root/content/dam/
inflating: jcr_root/content/dam/.content.xml
creating: jcr_root/content/dam/DSC_0106.jpg/
creating: jcr_root/content/dam/DSC_0106.jpg/_jcr_content/
creating: jcr_root/content/dam/DSC_0106.jpg/_jcr_content/renditions/
inflating: jcr_root/content/dam/DSC_0106.jpg/_jcr_content/renditions/cq5dam.thumbnail.48.48.png
error: invalid compressed data to inflate
creating: jcr_root/content/dam/DSC_0106.jpg/_jcr_content/renditions/cq5dam.thumbnail.48.48.png.dir/
inflating: jcr_root/content/dam/DSC_0106.jpg/_jcr_content/renditions/cq5dam.thumbnail.48.48.png.dir/.content.xml
inflating: jcr_root/content/dam/DSC_0106.jpg/_jcr_content/renditions/cq5dam.thumbnail.140.100.png
error: invalid compressed data to inflate
creating: jcr_root/content/dam/DSC_0106.jpg/_jcr_content/renditions/cq5dam.thumbnail.140.100.png.dir/
inflating: jcr_root/content/dam/DSC_0106.jpg/_jcr_content/renditions/cq5dam.thumbnail.140.100.png.dir/.content.xml
inflating: jcr_root/content/dam/DSC_0106.jpg/_jcr_content/renditions/cq5dam.web.1280.1280.jpeg
error: invalid compressed data to inflate
creating: jcr_root/content/dam/DSC_0106.jpg/_jcr_content/renditions/cq5dam.web.1280.1280.jpeg.dir/
inflating: jcr_root/content/dam/DSC_0106.jpg/_jcr_content/renditions/cq5dam.web.1280.1280.jpeg.dir/.content.xml
inflating: jcr_root/content/dam/DSC_0106.jpg/_jcr_content/renditions/original bad CRC 7aef5aa6 (should be 0ebac2d8)
creating: jcr_root/content/dam/DSC_0106.jpg/_jcr_content/renditions/original.dir/
inflating: jcr_root/content/dam/DSC_0106.jpg/_jcr_content/renditions/original.dir/.content.xml
inflating: jcr_root/content/dam/DSC_0106.jpg/_jcr_content/renditions/cq5dam.thumbnail.319.319.png
error: invalid compressed data to inflate
creating: jcr_root/content/dam/DSC_0106.jpg/_jcr_content/renditions/cq5dam.thumbnail.319.319.png.dir/
inflating: jcr_root/content/dam/DSC_0106.jpg/_jcr_content/renditions/cq5dam.thumbnail.319.319.png.dir/.content.xml
inflating: jcr_root/content/dam/DSC_0106.jpg/.content.xml
inflating: META-INF/vault/nodetypes.cnd
{code}
> ZipException: invalid code lengths set
> --------------------------------------
>
> Key: JCRVLT-257
> URL: https://issues.apache.org/jira/browse/JCRVLT-257
> Project: Jackrabbit FileVault
> Issue Type: Bug
> Components: Packaging
> Affects Versions: 3.1.42
> Reporter: Dirk Rudolph
> Priority: Critical
> Attachments: distributionpackage.zip
>
>
> I'm running into the following exception:
> {code}
> ...
> 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
> {code}
> 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 JCRVLT-163.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)