Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Duplicate
-
0.12.0
-
None
-
None
Description
If you call DefaultSftpClient.read(path), it returns an InputStream. If you inadvertantly, call close() twice on the input stream, on the second call, it throws an IOException - "SFTP error(2) No Such File".
This violates the Closeable interface which says if the resource is already closed(), the call is ignored.
Attachments
Issue Links
- is duplicated by
-
SSHD-353 The close method on the stream returned by DefaultSftpClient#read() should be idemptotent
- Resolved