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

java.io.File.delete: NT Permission problem

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 1.1, 1.1.2
    • Fix Version/s: 7
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_nt

      Description

      Name: sgC58550 Date: 03/25/97


      Given a NT file with "Full Permissions" set to "Everybody".

      the file:
      File usagers = new File("d:\\java\\httpserver\\outbox.tmp");
      ...
      System.out.println(usagers.canWrite());
      System.out.println(usagers.delete());

      The output is:
      true
      false

      and the file is not deleted.

      If I set the permissions to "none" for "Everybody" and I run the
      same code, the output is:
      true
      true

      and the file is deleted.
      company - Oricom Internet , email - ###@###.###
      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alanb Alan Bateman
                Reporter:
                sgoodsunw Sheri Good (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: