You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Karl Heinz Marbaise (Jira)" <ji...@apache.org> on 2019/12/14 21:15:00 UTC
[jira] [Closed] (MASSEMBLY-897) zipentry.getSize() returns -1 for
regular files in a m-a-p created zip
[ https://issues.apache.org/jira/browse/MASSEMBLY-897?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Karl Heinz Marbaise closed MASSEMBLY-897.
-----------------------------------------
Resolution: Cannot Reproduce
Seemed to be done. If not please reopen the issue.
> 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
(v8.3.4#803005)