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

FileSystemManager needs better lifecycle definition (SFTP: first access OK, second access: Unknown scheme)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Reopened
    • Critical
    • Resolution: Unresolved
    • 2.0
    • None
    • None
    • Java 1.7.0_13 64 Bit

    Description

      I access files from an SFTP server and accesm them roughly via

      -----------------
      vfs.resolveFile(uri, opts);
      ...
      vfs.resolveFile(cwd, directory);
      ...
      cwd.getChildren();
      ...
      vfs.resolveFile(fn);
      ...
      ((DefaultFileSystemManager) vfs).close();
      --------------------------

      If the same code runs a second time, the first call to resolveFile() throws

      Unknown scheme "sftp" in URI "sftp://..."

      I tried

      vfs.closeFileSystem(children[0].getFileSystem());

      like stated in http://wiki.apache.org/commons/SimpleSftpFileDownload, but this doesn't help!

      Attachments

        Activity

          People

            b.eckenfels Bernd Eckenfels
            mhilpert MH
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: