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

FileBrowser[Sheet] display the contents of the root instead of actual folder in some circumstancies

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0.2
    • 2.0.3
    • None
    • None
    • Windows XP, java 6

    Description

      When you open a fresh FileBrowser or FileBrowserSheet, with a no-argument constructor, and then you set the root directory to a directory under another drive than C:, say "T:\FOLDER" for example, then when you open it it seems to be located at the right place (from the above bar) but the actual displayed files are those at the root of the drive. See screen capture for better comprehension.

      Seems to appear when :

      • the root folder is not specified in the constructor
      • the root folder is not under C: (reproduced with network drives and USB keys, couldn't try with another partition or internal drive as I don't have one here)

      Steps to reproduce :
      1/ map T: to a network drive or plug in a USB key
      2/ create the following structure : T:\FOLDER\SUBFOLDER
      3/ run the following code :

      Window window = new Window();
      window.open(display);
      window.setMaximized(true);

      FileBrowserSheet fileBrowserSheetFile = new FileBrowserSheet(Mode.OPEN);
      // The folder structure is T:\FOLDER\SUBFOLDER
      fileBrowserSheetFile.setRootDirectory(new File("T:\\FOLDER
      "));
      fileBrowserSheetFile.open(window);
      // Bug : it actually opens on FOLDER but displayed is the content of T: root

      Expected : I want to see my "SUBFOLDER" but I actually see "FOLDER".

      Remark : If I want to set the root to a more deeply nested folder, like d:\f1\f2\f3, I still see the content of d:

      Workaround : use the constructor with the root folder in it, like :
      FileBrowserSheet fileBrowserSheetFile = new FileBrowserSheet(Mode.OPEN, "T:
      FOLDER");

      Attachments

        1. bug-862.png
          140 kB
          Guillaume Deshors

        Issue Links

          Activity

            People

              smartini Sandro Martini
              gdeshors Guillaume Deshors
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: