[ 
https://issues.apache.org/jira/browse/SSHD-351?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Guillaume Nodet closed SSHD-351.
--------------------------------
    Resolution: Duplicate

> DefaultSftpClient.read() Returns InputStream which violates Closeable 
> Interface contract
> ----------------------------------------------------------------------------------------
>
>                 Key: SSHD-351
>                 URL: https://issues.apache.org/jira/browse/SSHD-351
>             Project: MINA SSHD
>          Issue Type: Bug
>    Affects Versions: 0.12.0
>            Reporter: George Sexton
>            Priority: Minor
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to