[ 
https://issues.apache.org/jira/browse/SSHD-351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14147800#comment-14147800
 ] 

Guillaume Nodet commented on SSHD-351:
--------------------------------------

Sorry I missed the fact you created the jira issue.

> 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