-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
6
-
generic
-
generic
JDK: tiger, mustang
How to reproduce:
1. install JDK.
2. launch demo/jfc/Stylepad demo by running "bin/java -jar demo/jfc/Stylepad/*jar"
3. Open File-> Save, pick README.html to save the file as README.html. Even though the file does not have writable persmission. It will be overwriten with the new file. This means it can be saved to any existing files even src.zip.
-r--r--r-- 1 root root 20274 Nov 17 02:16 README.html
It should check permissions and warm users it will replace the original file.
How to reproduce:
1. install JDK.
2. launch demo/jfc/Stylepad demo by running "bin/java -jar demo/jfc/Stylepad/*jar"
3. Open File-> Save, pick README.html to save the file as README.html. Even though the file does not have writable persmission. It will be overwriten with the new file. This means it can be saved to any existing files even src.zip.
-r--r--r-- 1 root root 20274 Nov 17 02:16 README.html
It should check permissions and warm users it will replace the original file.
- duplicates
-
JDK-6357298 Java demo notepad is able to write to a file which has no write permission in Solaris
-
- Open
-