JDK-4058373 : java.io.File.{canRead,canWrite} ignore NTFS DACLs
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.io
  • Affected Version: 1.1.2
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_nt
  • CPU: x86
  • Submitted: 1997-06-12
  • Updated: 1998-08-02
  • Resolved: 1998-08-02
Related Reports
Duplicate :  
Description
Both File.canRead() and File.canWrite() ignore DACL information for NTFS
partitions on Win32 systems. This can cause canRead()/canWrite() to incorrectly
return true if a file is readable/writeable according to its attributes but
not according to its DACL.

Comments
SUGGESTED FIX Change canRead()/canWrite() so that DACL permissions are taken into account. The union of both attribute and DACL permissions should be taken when determining read/write access.
11-06-2004