tomaswolf commented on issue #861: URL: https://github.com/apache/mina-sshd/issues/861#issuecomment-3700621220
Never mind. I managed to reproduce that extra zero-byte write, but at what byte size this occurs depends on the SFTP file handle size, which is determined by the server. That IBM server uses 12 bytes while an Apache MINA sshd server by default uses 4 bytes. So with an Apache MINA shd server and the default buffer size this occurs if the file size is a multiple of 32734 bytes. While it is a bug in the client side of Apache MINA sshd that such a zero-length SSH_FXP_WRITE is sent (and I'm going to fix that), I'd also like to point out that this IBM server is wrong to reject the write with SSH_FX_BAD_MESSAGE. I see nothing in the SFTP draft RFCs that would forbid SSH_FXP_WRITE with zero length data. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
