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

SftpFileSystem returns null channel and produce NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4, 2.6.0
    • None
    • None

    Description

      I caught NPE in case of parallel operations with files:
      Caused by: java.lang.NullPointerException
      at org.apache.commons.vfs2.provider.sftp.SftpFileSystem.putChannel(SftpFileSystem.java:183)
      at org.apache.commons.vfs2.provider.sftp.SftpFileObject.doRename(SftpFileObject.java:215)
      at org.apache.commons.vfs2.provider.AbstractFileObject.moveTo(AbstractFileObject.java:1668)

      After short investigation I see issue in SftpFileSystem#getChannel

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Nikita T Nikita Tolstunov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: