-
Bug
-
Resolution: Fixed
-
P2
-
1.4.2_38-rev, 5.0u36-rev, 6u33, 6u34, 8
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2225576 | 8 | Xueming Shen | P1 | Closed | Fixed | b47 |
JDK-2225573 | 7u6 | Xueming Shen | P2 | Closed | Fixed | b15 |
JDK-2225578 | 6u34 | Mala Bankal | P2 | Closed | Fixed | b03 |
JDK-2226676 | OpenJDK6 | Mala Bankal | P2 | Resolved | Fixed | b26 |
JDK-2227262 | 5.0u38 | Mala Bankal | P2 | Closed | Fixed | b02 |
JDK-2225574 | 5.0u36 | Mala Bankal | P2 | Resolved | Fixed | b32 |
JDK-2227263 | 1.4.2_40 | Mala Bankal | P2 | Closed | Fixed | b02 |
JDK-2225575 | 1.4.2_38 | Mala Bankal | P2 | Resolved | Fixed | b31 |
Jar command changes the permission of file.
REPRODUCE :
1. run "umask 022"
2. run "jar cvf new-file any-file"
3. confirm the permission of new-file in the above step2
(permission is set to 644)
4. run "jar uvf new-file any-file2"
5. confirm the permission of new-file again.
You can see the permission is changed to 600
FREQUENCY:
This problem occurs every time the command is run.
EXPECTED:
The behavior in jdk6u32 is expected.(permission is not changed by jar command)
---- JDK6u32 ---
jle-esxi-redhat:/home/tbaba 42 % umask 022
jle-esxi-redhat:/home/tbaba 43 % jar cvf test.jar te.csh
added manifest
adding: te.csh(in = 476) (out= 96)(deflated 79%)
jle-esxi-redhat:/home/tbaba 44 % ls -l test.jar
-rw-r--r--+ 1 tbaba javasoft 545 Jun 10 23:25 test.jar
jle-esxi-redhat:/home/tbaba 45 % jar uvf test.jar cmd
adding: cmd(in = 149) (out= 91)(deflated 38%)
jle-esxi-redhat:/home/tbaba 46 % ls -l test.jar
-rw-r--r--+ 1 tbaba javasoft 734 Jun 10 23:25 test.jar
jle-esxi-redhat:/home/tbaba 47 % java -version
java version "1.6.0_32"
Java(TM) SE Runtime Environment (build 1.6.0_32-b05)
Java HotSpot(TM) 64-Bit Server VM (build 20.7-b02, mixed mode)
----------
ACTUAL:
Permission of file is changed by jar command.
--- JDK6u33 ----
jle-esxi-redhat:/home/tbaba 43 % umask 022
jle-esxi-redhat:/home/tbaba 44 % jar cvf test.jar te.csh
added manifest
adding: te.csh(in = 476) (out= 96)(deflated 79%)
jle-esxi-redhat:/home/tbaba 45 % ls -l test.jar
-rw-r--r--+ 1 tbaba javasoft 545 Jun 10 23:28 test.jar
jle-esxi-redhat:/home/tbaba 46 % jar uvf test.jar cmd
adding: cmd(in = 149) (out= 91)(deflated 38%)
jle-esxi-redhat:/home/tbaba 47 % ls -l test.jar
-rw-------+ 1 tbaba javasoft 734 Jun 10 23:29 test.jar <==== Permission is changed !!
jle-esxi-redhat:/home/tbaba 48 % java -version
java version "1.6.0_33"
Java(TM) SE Runtime Environment (build 1.6.0_33-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03, mixed mode)
---------------
- backported by
-
JDK-2225574 "jar uf" changes file permissions unexpectedly
- Resolved
-
JDK-2225575 "jar uf" changes file permissions unexpectedly
- Resolved
-
JDK-2226676 "jar uf" changes file permissions unexpectedly
- Resolved
-
JDK-2225576 "jar uf" changes file permissions unexpectedly
- Closed
-
JDK-2225573 "jar uf" changes file permissions unexpectedly
- Closed
-
JDK-2225578 "jar uf" changes file permissions unexpectedly
- Closed
-
JDK-2227262 "jar uf" changes file permissions unexpectedly
- Closed
-
JDK-2227263 "jar uf" changes file permissions unexpectedly
- Closed
- duplicates
-
JDK-7180579 JDK8-b45/b46 SWAT- Permission issue to read sa-jdi.jar
- Closed
-
JDK-7174738 htmlconverter.jar has no read permission for group and others in jdk 6u34b02
- Closed
- relates to
-
JDK-7199153 TEST_BUG: try-with-resources syntax pushed to 6-open repo.
- Resolved
-
JDK-7177216 native2ascii changes file permissions of input file
- Closed