Uploaded image for project: 'Commons VFS'
  1. Commons VFS
  2. VFS-27

[vfs] getChildren() faild on missing folder access rights

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • Operating System: other
      Platform: Other

    • 38122

    Description

      On Windows XP I tried to list all files in a folder of another user
      but i had no access rights for this folder. So the method
      FileObject.getChildren() (commons-vfs-1.0-RC6.jar) returned an empty
      FileObject-array (like for an empty folder).
      When I used the method java.io.File.list() i got "null" for this
      folder (where i had no access rights) and an empty array for an
      empty folder (where i had access rights).

      So the behavior of java,io.File-list() is ok.
      The behavior of FileObject.getChildren() is misleading. It seems
      that there is an empty folder (where no empty folder is).

      Attachments

        Activity

          People

            Unassigned Unassigned
            huber.anton@hotmail.com Huber Anton
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: