This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 180091 - NBI could read file permission from zip/jar when files.list is not available
Summary: NBI could read file permission from zip/jar when files.list is not available
Status: NEW
Alias: None
Product: installer
Classification: Unclassified
Component: NBI (show other bugs)
Version: 6.x
Hardware: PC Other
: P2 normal (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-01 08:32 UTC by Adam Sotona
Modified: 2014-02-10 14:15 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Sotona 2010-02-01 08:32:47 UTC
It would be very useful and very simplifying NBI installer builds when file permission are taken from zip/jar file as-is without an extra files.list.

There is a part of NBI installer that is responsible for unpacking the files and setting the right. It simply sets no right when the files.list is missing inside zip/jar. 

Using Apache Ant org.apache.tools.zip.ZipFile implementation instead of the standard JRE java.util.zip.ZipFile would allow to set the file permission according to the original zip/jar.
Comment 1 Jiri Rechtacek 2012-10-07 12:58:50 UTC
Assigned to new owner.
Comment 2 phansson 2013-11-06 08:57:55 UTC
Note: The ZIP file format as such does not allow file permission information for each entry. This is why it is not supported by java.util.zip. It is not in the spec!

What Apache Ant does is that it leverages an Info-ZIP extension to the ZIP file format that allows file permissions to be stored within the zip file. This works as long as the ZIP file is also extracted with an Info-ZIP compatible unzipper.