RFR: 6777156: GTK L&F: JFileChooser shouldn't display /../../../.. in combobox and selection textarea.

Tejesh R tr at openjdk.org
Fri Sep 23 11:27:18 UTC 2022


On Thu, 22 Sep 2022 12:48:14 GMT, Abhishek Kumar <duke at openjdk.org> wrote:

> When a user selects ../ from directory list in GTK FileChooser continuosly, it leads to '../../../.....' in combobox and selection textarea even though it the current directory is at root level.
> 
> Fix for the issue is to check if current directory is root then don't process the selection of ' ../ '.
> 
> Test case has been added and checked in CI pipeline. Link is attached in JBS.

Is there any possibility to check for current Directory to be `root` before confirming that the traversal is stopping at root?

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

PR: https://git.openjdk.org/jdk/pull/10390



More information about the client-libs-dev mailing list