You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "George Sexton (JIRA)" <ji...@apache.org> on 2014/09/22 19:37:34 UTC

[jira] [Created] (SSHD-352) DefaultSftpClient.write(path) Fails if file path does not already exist

George Sexton created SSHD-352:
----------------------------------

             Summary: DefaultSftpClient.write(path) Fails if file path does not already exist
                 Key: SSHD-352
                 URL: https://issues.apache.org/jira/browse/SSHD-352
             Project: MINA SSHD
          Issue Type: Bug
    Affects Versions: 0.12.0
            Reporter: George Sexton
            Priority: Minor


If you call DefaultSftpClient.write(path) and the file does not exist, the call throws IO Exception (SFTP Error (2) No Such File).

This is because the set of OpenMode parameters passed to open() does not include OpenMode.Create

Clearly, write() should not depend upon the files existence for success.



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