Need reviewer for 6876541: (file) Files.walkFileTree(...): no SecurityException if read access to the starting file is denied
Alan Bateman
Alan.Bateman at Sun.COM
Wed Sep 9 05:22:20 PDT 2009
I need a reviewer for this faux pas in Files.walkFileTree.
SecurityException should be thrown if access to the starting file is
denied by the security manager. Instead, the exception is silently
consumed and the starting file ignored (ie: walkFileTree does nothing).
A secondary issue (Windows only) arises where a security manager allows
access to a directory but not to the all entries in that directory. Such
entries should be skipped but non-directory entries are still notified
to the FileVisitor. The webrev is here:
http://cr.openjdk.java.net/~alanb/6876541/webrev.00/
Thanks,
Alan.
More information about the nio-dev
mailing list