[
https://jira.codehaus.org/browse/MASSEMBLY-557?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=295409#comment-295409
]
Christoph Gritschenberger edited comment on MASSEMBLY-557 at 3/29/12 7:09 PM:
------------------------------------------------------------------------------
I recently encountered a similar problem.
However I could only reproduce it with java7 (windows/linux, oracle/openjdk
does not matter).
{code}
java version "1.7.0_03"
Java(TM) SE Runtime Environment (build 1.7.0_03-b04)
{code}
or
{code}
java version "1.7.0_147-icedtea"
OpenJDK Runtime Environment (IcedTea7 2.0) (7~b147-2.0-0ubuntu0.11.10.1)
{code}
The zip was fine when using java6.
{code}
java version "1.6.0_23"
OpenJDK Runtime Environment (IcedTea6 1.11pre) (6b23~pre11-0ubuntu1.11.10.2)
{code}
The zip also seems to work just fine in windows.
So I was able to reproduce it with this:
{code}
git clone git://github.com/openengsb/openengsb-framework.git
cd openengsb-framework
git checkout v2.4.2
mvn clean install -DskipTests
cd assembly/target
unzip openengsb-framework-2.4.2.zip
ls -ld openengsb-framework-2.4.2/config
{code}
{code}
$ ls openengsb-framework-2.4.2/config/ -ld
d--------- 2 christoph christoph 4096 2012-03-30 02:04
openengsb-framework-2.4.2/config/
{code}
was (Author: christophgr):
I recently encountered a similar problem.
However I could only reproduce it with java7 (windows/linux, oracle/openjdk)
does not matter.
{code}
java version "1.7.0_03"
Java(TM) SE Runtime Environment (build 1.7.0_03-b04)
{code}
or
{code}
java version "1.7.0_147-icedtea"
OpenJDK Runtime Environment (IcedTea7 2.0) (7~b147-2.0-0ubuntu0.11.10.1)
{code}
The zip was fine when using java6.
{code}
java version "1.6.0_23"
OpenJDK Runtime Environment (IcedTea6 1.11pre) (6b23~pre11-0ubuntu1.11.10.2)
{code}
The zip also seems to work just fine in windows.
So I was able to reproduce it with this:
{code}
git clone git://github.com/openengsb/openengsb-framework.git
cd openengsb-framework
git checkout v2.4.2
mvn clean install -DskipTests
cd assembly/target
unzip openengsb-framework-2.4.2.zip
ls -ld openengsb-framework-2.4.2/config
{code}
{code}
$ ls openengsb-framework-2.4.2/config/ -ld
d--------- 2 christoph christoph 4096 2012-03-30 02:04
openengsb-framework-2.4.2/config/
{code}
> Corrupted zip created by assembly: extracting the zip forgets certain folders
> (or throws permission denied errors) possibly because zip index is corrupted
> ----------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: MASSEMBLY-557
> URL: https://jira.codehaus.org/browse/MASSEMBLY-557
> Project: Maven 2.x Assembly Plugin
> Issue Type: Bug
> Affects Versions: 2.2.1
> Reporter: Geoffrey De Smet
> Priority: Critical
> Attachments:
> droolsjbpm-integration-distribution-5.2.0.M2_BROKEN_IN_reference_manual_gutted.zip
>
>
> Take a look at the attached zip created by the assembly plugin.
> - If you open it, you can see navigate to the submap
> /droolsjbpm-integration-distribution-5.2.0.M2/reference_manual/pdf/. In that
> map you find the file droolsjbpm-integration-docs.pdf which you can open with
> a PDF reader.
> - If instead you extract the entire archive to a directory, and navigate to
> the submap
> /droolsjbpm-integration-distribution-5.2.0.M2/reference_manual/pdf/, you 'll
> find that that map is unreadable (chmod 000) and the pdf file is gone.
> The directories html_single and html suffer the same fate, but none of the
> other directories do.
> I used the default linux Ubuntu 10.10 archive manager (which according to
> about screen is called "File-roller 2.32.0").
> I used Maven 3.0.3, maven-assembly-plugin 2.2.1.
> Note that that attached zip is gutted to stay inside the maximum file upload
> size.
> Possible reproduce recipe:
> {code}
> git clone [email protected]:droolsjbpm/droolsjbpm-integration.git
> cd droolsjbpm-integration
> git checkout 5.2.0.M2
> mvn clean install -DskipTests -Dfull
> cd droolsjbpm-integration/target
> ls
> {code}
> {code}
> checkdir error: cannot create
> /home/gdesmet/tmp/releases/problem_with_the_release_zip/droolsjbpm-integration-distribution-5.2.0.M2/reference_manual/html_single/images
> Permission denied
> unable to process
> droolsjbpm-integration-distribution-5.2.0.M2/reference_manual/html_single/images/.
> ...
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira