Adding Subfiles to a directory fails in WindowsXP

Alan Bateman Alan.Bateman at Sun.COM
Mon Jun 9 01:32:24 PDT 2008


Rajendra Gutupalli wrote:
> Hi Alan,
>
> Tying to add a subfile to a directory in Windows XP fails with 
> AccessDeniedException, but I am able to add subfile to a directory 
> using command line tool "cat".
> Please see the following output when tried through command line and 
> through the program. Please let me the whether the behavior is expected?
This is indeed a bug - thanks! The bug is that we are missing the 
FILE_FLAG_BACKUP_SEMANTICS flag when opening the file. I've fixed this 
in my repository and also improved the test coverage (as my unit tests 
weren't accessing the named attributes of directories).

-Alan



More information about the nio-dev mailing list