maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Enrico Olivelli (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MASSEMBLY-897) zipentry.getSize() returns -1 for regular files in a m-a-p created zip
Date Thu, 27 Dec 2018 09:12:00 GMT

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

Enrico Olivelli commented on MASSEMBLY-897:
-------------------------------------------

For reference this is the branch with your (failing) test case

https://github.com/apache/maven-assembly-plugin/tree/MASSEMBLY-897

> zipentry.getSize() returns -1 for regular files in a m-a-p created zip
> ----------------------------------------------------------------------
>
>                 Key: MASSEMBLY-897
>                 URL: https://issues.apache.org/jira/browse/MASSEMBLY-897
>             Project: Maven Assembly Plugin
>          Issue Type: Bug
>          Components: maven-archiver
>    Affects Versions: 2.5, 2.4.1, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.5.5, 2.6, 3.1.0
>         Environment: Windows, oracle and ibm 1.8 jvm's
>            Reporter: Marcel
>            Priority: Major
>         Attachments: ReadZip.java, pom.xml
>
>
> When you create a zip file using maven-assembly-plugin in one the 'affected versions'
and later read it back usingĀ java.util.zip.ZipInputStream, the ZipEntry instances for files
will returnĀ -1 from a call to zipentry.getSize(). Using version 2.4 this call will return
the correct uncompressed size. It also works when I build and use the latest 3.1.1-SNAPSHOT.
It was fixed in commit 5ccac88 which not surprisingly updated plexus-archiver.
> Please consider releasing 3.1.1 to make this publicly available and also to use the attached
pom and java code to add a testcase guarding against a future regression.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message