You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Thomas Wolf (Jira)" <ji...@apache.org> on 2020/06/26 07:48:00 UTC

[jira] [Commented] (SSHD-1022) NPE in SftpOutputStreamAsync.flush()

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

Thomas Wolf commented on SSHD-1022:
-----------------------------------

This bug cannot be worked around in client code since {{write(byte[], int, int)}} calls {{flush()}} internally when the buffer is full. This means SFTP file uploads may fail at any time. Would this warrant a bug-fix release 2.5.1 of at least sshd-sftp?

> NPE in SftpOutputStreamAsync.flush() 
> -------------------------------------
>
>                 Key: SSHD-1022
>                 URL: https://issues.apache.org/jira/browse/SSHD-1022
>             Project: MINA SSHD
>          Issue Type: Bug
>    Affects Versions: 2.5.0
>            Reporter: Thomas Wolf
>            Assignee: Lyor Goldstein
>            Priority: Major
>             Fix For: 2.6.0
>
>
> {{SftpOutputStreamAsync.flush()}} sets the internal buffer to {{null}}. Code invoking {{flush()}} without having written anything since the last flush will get an NPE.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org