Marcel created MASSEMBLY-897:
--------------------------------

             Summary: 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: 3.1.0, 2.6, 2.5.5, 2.5.4, 2.5.3, 2.5.2, 2.5.1, 2.4.1, 2.5
         Environment: Windows, oracle and ibm 1.8 jvm's
            Reporter: Marcel
         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)

Reply via email to