smitsjelle commented on issue #690:
URL: https://github.com/apache/mina-sshd/issues/690#issuecomment-2717733324

   I did a quick test with some OpenSSH SFTP server (from this Docker image) 
that reports doReadIdentification `SSH-2.0-OpenSSH_8.4p1 Debian-5+deb11u3`. For 
that one it does indeed work fine, which suggests that the issue might indeed 
be either server-specific or maybe somewhere in OpenSSH 7.9.
   
   The reason why I'm not sure whether it is a server specific issue yet, is 
that this server was handling my append operations just fine when I used an 
older Spring Integration version that still used Jsch as SFTP library. Also, 
with a small change in the append code I seem to be able to do the append (see 
the code snippet below). Do you know if that is because it inherently does a 
_write from_ rather than a more dynamic append, or would this still be 
considered a 'normal' append?
   
   This snippet does produce working append behavior for this server:
   ```
   SftpClient.CloseableHandle handle = this.sftpClient.open(
                                destination,
                                SftpClient.OpenMode.Create,
                                SftpClient.OpenMode.Write,
                                SftpClient.OpenMode.Append);
                this.sftpClient.write(handle, offset, 
inputStream.readAllBytes());
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to