[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-2d-dev
Subject:    Re: RFR: 8307105: JFileChooser InvalidPathException when selecting some system folders on Windows [v
From:       Damon Nguyen <dnguyen () openjdk ! org>
Date:       2023-05-31 16:06:03
Message-ID: aaDuPXd3_tByJQ05fCyCV8mcJkRm-P7dhjFMlKl9z54=.4f05c65d-77c7-4585-bbcd-2f19da8ec137 () github ! com
[Download RAW message or body]

On Wed, 31 May 2023 10:06:30 GMT, Tejesh R <tr@openjdk.org> wrote:

> > This is a regression from fix \
> > [JDK-8281966](https://bugs.openjdk.org/browse/JDK-8281966): Absolute path of \
> > symlink is null in JFileChooser. The fix checks whether the file path is a \
> > symbolic link using `Files.isSymbolicLink()` method with path as input. In \
> > windows for specific folders like "This PC"/"Network"/"Libraries" the path value \
> > will be a hex values which causes InvalidPathException. In order to resolve the \
> > issue, since no other checks are available to validate the path of these folders, \
> > checking if the file is link firstly and then for symbolic link resolves the \
> > problem (since File.isLink() doesn't take path as input rather file is a \
> > parameter). Since every symbolic link is a link, this fix seems logical to me. \
> > The fix is tested in CI for regression and is green. The regression fix is also \
> > tested for confirmation and works fine.
> 
> Tejesh R has updated the pull request incrementally with one additional commit \
> since the last revision: 
> Updated based on review comments

Changes LGTM now

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

PR Comment: https://git.openjdk.org/jdk/pull/13998#issuecomment-1570513025


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic