JDK-6299847 : jar uvf commands doesn't restore group permission when updated with root user.
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.util.jar
  • Affected Version: 1.4.0
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris
  • CPU: unknown
  • Submitted: 2005-07-21
  • Updated: 2011-02-22
  • Resolved: 2006-12-14
Related Reports
Duplicate :  
Relates :  
Description
create a jar file abc.jar 
chown root:bin abc.jar
jar uvf abc.jar file1
check permissions
now it shows root:other not root and bin.
if more information is required contact me.


###@###.### 2005-07-21 05:52:17 GMT

Comments
EVALUATION Zip files were designed for MS-DOS floppies. The standard file format contains no ownership or Unix style permission information. There are some extensions to the file format that would allow maintaining this kind of information, but it can never be guaranteed (there is no requirement that zip files contain such "extended" metadata) and it would be a lot of work to implement and (especially!) test. This has caused a escalation in application server. zip/jar files won't contain any information metadata and that is not required also. on unix system the file information can be obtained by say ls -l abc.jar this will give completes details. sun's won product setup sdk provides some utilities for changing ownership of files. if more information is needed for fixing this please contact me
25-07-2005