Bug in Files.isSameFile(Path,Path)
Alan Bateman
Alan.Bateman at oracle.com
Fri Oct 23 18:35:35 UTC 2020
On 23/10/2020 19:19, WarnerJan Veldhuis wrote:
>
> - So far I could only reproduce this behaviour on a WebDAV drive. This
> problem does not occur on "normal" networked drives. I have tried this
> on my mapped NAS drives, which is mapped via UNC as \\nas\share, and
> then Files::isSameFile returns false as expected.
>
isSameFile makes use of the volume serial number and the low/high parts
of the unique file identifier. I can't easily check it just now but I
wonder if the WebDAV redirector is the issue, maybe it returns a fixed
value instead of synthesizing? There are some folks from Microsoft on
this mailing list that may be able to get more info on the WebDAV
redirector.
-Alan
More information about the nio-dev
mailing list