Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: plexus-archiver-1.2
-
Fix Version/s: plexus-archiver-2.2
-
Component/s: plexus-archiver
-
Environment:Linux
-
Patch Submitted:Yes
-
Number of attachments :
Description
This is easy to fix.
When creating a ZIP with plexus-archiver, normally directories are added with a wrong attribute.
Listing such a ZIP file with "zipinfo" or "unzip -Z" in the command line shows directories as having the attribute "?" instead of "d". Such files cannot be opened with Midnight Commander or Krusader.
This behavior is there since plexus-archiver 1.0-alpha-12; version 1.0-alpha-10 didn't have it.
I've attached a patch which I have tested with the actual trunk version 1.3-SNAPSHOT and it works. Also the unit tests finish successfully.
This can be tested with maven-assembly-plugin:2.2-beta-5 for example, which depends on plexus-archiver 1.0-alpha-12.
maven-assembly-plugin:2.2-beta-2 in turn uses plexus-archiver 1.0-alpha-10 and doesn't show this behaviour.
I would have commited the fix into SVN myself if I had an account...
Issue Links
- is depended upon by
-
MASSEMBLY-422
Generated directories have wrong file attributes
-
Fixed in a159f8355f957966e011b523a1698ee17900c7fc, thanks for the patch !
Note that plexus archiver is now at https://github.com/sonatype/plexus-archiver
I will try to redeploy the site to get the url's updated