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] [Created] (PIVOT-1058) Using a non-default root directory string in FileBrowserSheet causes exception
Date Mon, 12 Apr 2021 19:32:00 GMT
Roger Lee Whitcomb created PIVOT-1058:
-----------------------------------------

             Summary: 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
             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