RFR: 8306882: (fs) Path.toRealPath(LinkOption.NOFOLLOW_LINKS) fails when "../../" follows a link [v2]

Alan Bateman alanb at openjdk.org
Wed Aug 30 12:42:12 UTC 2023


On Tue, 29 Aug 2023 20:40:39 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

>> Modify `Path.toRealPath` such that it does not collapse links such as "link/.." or "link/../.." when `LinkOption.NOFOLLOW_LINKS` is specified or, in some cases, not.
>
> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
> 
>   8306882: Revert Windows and test changes; add some text to comments in Unix change

I think looks okay, and I assume the work on converting the test to a standalone JUnit test will expand the test coverage to include this scenario.

-------------

Marked as reviewed by alanb (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/15397#pullrequestreview-1602611673


More information about the nio-dev mailing list