Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-1058

Using a non-default root directory string in FileBrowserSheet causes exception

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.0
    • Component/s: wtk, wtk-terra
    • Labels:
      None

      Description

      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)
      . . .

        Attachments

          Activity

            People

            • Assignee:
              rwhitcomb Roger Lee Whitcomb
              Reporter:
              rwhitcomb Roger Lee Whitcomb
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: