pivot-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roger Lee Whitcomb (Jira)" <j...@apache.org>
Subject [jira] [Commented] (PIVOT-1058) Using a non-default root directory string in FileBrowserSheet causes exception
Date Sat, 17 Apr 2021 06:29:00 GMT

    [ https://issues.apache.org/jira/browse/PIVOT-1058?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17324184#comment-17324184
] 

Roger Lee Whitcomb commented on PIVOT-1058:
-------------------------------------------

PIVOT-1058,PIVOT-1032: When dealing with files in FileBrowser, use the canonical version
in order to tell if the file really belongs to the root directory (necessary if the root
is "." or "..", for instance). Fix "checkstyle" problems.

Sending        wtk/src/org/apache/pivot/wtk/FileBrowser.java
Transmitting file data .done
Committing transaction...
Committed revision 1888842.


> Using a non-default root directory string in FileBrowserSheet causes exception
> ------------------------------------------------------------------------------
>
>                 Key: PIVOT-1058
>                 URL: https://issues.apache.org/jira/browse/PIVOT-1058
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk, wtk-terra
>            Reporter: Roger Lee Whitcomb
>            Assignee: Roger Lee Whitcomb
>            Priority: Minor
>             Fix For: 2.1.0
>
>
> Doing "new FileBrowserSheet(".") or with "./" causes an exception trying to navigate
into a subdirectory (at least):
> java.lang.IllegalArgumentException: ././test is not a child of the root directory.
> 	at org.apache.pivot.wtk.FileBrowser.setSelectedFiles(FileBrowser.java:248)
> 	at org.apache.pivot.wtk.skin.terra.TerraFileBrowserSkin$9.selectedRangesChanged(TerraFileBrowserSkin.java:876)
> 	at org.apache.pivot.wtk.TableViewSelectionListener$Listeners.lambda$selectedRangesChanged$2(TableViewSelectionListener.java:43)
> 	at java.base/java.lang.Iterable.forEach(Iterable.java:75)
> 	at org.apache.pivot.wtk.TableViewSelectionListener$Listeners.selectedRangesChanged(TableViewSelectionListener.java:43)
> 	at org.apache.pivot.wtk.TableView.setSelectedRanges(TableView.java:1154)
> 	at org.apache.pivot.wtk.TableView.setSelectedRange(TableView.java:1098)
> 	at org.apache.pivot.wtk.TableView.setSelectedIndex(TableView.java:1083)
> 	at org.apache.pivot.wtk.skin.terra.TerraTableViewSkin.mouseDown(TerraTableViewSkin.java:1180)
> 	at org.apache.pivot.wtk.ComponentMouseButtonListener$Listeners.lambda$mouseDown$0(ComponentMouseButtonListener.java:35)
> 	at java.base/java.lang.Iterable.forEach(Iterable.java:75)
> 	at org.apache.pivot.wtk.ComponentMouseButtonListener$Listeners.mouseDown(ComponentMouseButtonListener.java:35)
> 	at org.apache.pivot.wtk.Component.mouseDown(Component.java:2597)
> 	at org.apache.pivot.wtk.Container.mouseDown(Container.java:672)
> 	at org.apache.pivot.wtk.Container.mouseDown(Container.java:672)
> 	at org.apache.pivot.wtk.Container.mouseDown(Container.java:672)
> 	at org.apache.pivot.wtk.Container.mouseDown(Container.java:672)
> 	at org.apache.pivot.wtk.Container.mouseDown(Container.java:672)
> 	at org.apache.pivot.wtk.Container.mouseDown(Container.java:672)
> 	at org.apache.pivot.wtk.Container.mouseDown(Container.java:672)
> 	at org.apache.pivot.wtk.Container.mouseDown(Container.java:672)
> 	at org.apache.pivot.wtk.Container.mouseDown(Container.java:672)
> 	at org.apache.pivot.wtk.ApplicationContext$DisplayHost.processMouseEvent(ApplicationContext.java:1092)
> . . .



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message