Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6357298

Java demo notepad is able to write to a file which has no write permission in Solaris

XMLWordPrintable

    • generic
    • generic, solaris

      How to reproduce the problem:

      1. Install JDK 1.6.0 B61
      2. Go to <JDK_HOME>/demo/jfc/Notepad
      3. Invoke Notepad.jar in the directory with the command, "<JDK_HOME>/bin/java -jar Notepad.jar
      4. In the application, open any file which has no write permission. Like the following: -r--r--r-- 1 root root 8564 Nov 30 12:25 applets.html
      (For testing purpose, you can modify a file to read only)

      5. In the application, modify the content of the file. Save and modify the file which has no write permission, although, ideally you should not be able to do it.

            peterz Peter Zhelezniakov
            dleansunw Danny Lean (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: