You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Guillaume Nodet (JIRA)" <ji...@apache.org> on 2014/06/03 09:29:01 UTC

[jira] [Resolved] (SSHD-326) DefaultSftpClient#write(String) fails for streams > 32 KiB

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

Guillaume Nodet resolved SSHD-326.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 0.12.0
         Assignee: Guillaume Nodet

Thx for the patch !

> DefaultSftpClient#write(String) fails for streams > 32 KiB
> ----------------------------------------------------------
>
>                 Key: SSHD-326
>                 URL: https://issues.apache.org/jira/browse/SSHD-326
>             Project: MINA SSHD
>          Issue Type: Bug
>    Affects Versions: 0.11.0
>            Reporter: Florian Schoppmann
>            Assignee: Guillaume Nodet
>            Priority: Minor
>             Fix For: 0.12.0
>
>
> {{DefaultSftpClient#write(String)}} returns an {{OutputStream}} that has a bug in {{OutputStream#write(byte[],int,int)}}: Since {{off}} is never updated, anything copied into the buffer is from the first 32 KiB of the array passed as first argument.
> Incidentally, and even though not technically a bug, it also would be nice if the returned output stream would perform a flush when it is closed.



--
This message was sent by Atlassian JIRA
(v6.2#6252)