Tilden created SSHD-1310:
----------------------------
Summary: SftpFileSystem.close() method, closes the session as
well.
Key: SSHD-1310
URL: https://issues.apache.org/jira/browse/SSHD-1310
Project: MINA SSHD
Issue Type: Bug
Reporter: Tilden
SftpFileSystem.close() method, closes the session as well.
We expect only the sftpfilesystem channel to be closed. Since we use the same
session for multiple operations (exec command, SFTP download & upload, SFTP
client list directory).
SftpFileSystem.java
public void close() throws IOException {
if (this.isOpen()) {
SftpFileSystemProvider provider = this.provider();
String fsId = this.getId();
SftpFileSystem fs = provider.removeFileSystem(fsId);
ClientSession session = this.getClientSession();
*session.close(true);*
if (fs != null && fs != this) {
throw new FileSystemException(fsId, fsId, "Mismatched FS
instance for id=" + fsId);
}
}
}
can you please check and let us know, if this can be fixed ?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]