hsynsvndk opened a new issue, #763:
URL: https://github.com/apache/mina-sshd/issues/763
### Version
2.12.1
### Bug description
Hi everyone,
I'm currently using sshd-core version 2.12.1 in a Maven-based Java project.
I wanted to upgrade to a more recent version (e.g., 2.15.0), but
unfortunately, I encountered a critical issue when downloading large files via
SFTP.
When I attempt to download a large file using SftpInputStreamAsync, I
receive the following exception:
`
java.lang.NullPointerException: Cannot invoke
"org.apache.sshd.common.util.buffer.Buffer.available()" because "this.buffer"
is null
at
org.apache.sshd.sftp.client.impl.SftpInputStreamAsync.sendRequests(SftpInputStreamAsync.java:245)
at
org.apache.sshd.sftp.client.impl.SftpInputStreamAsync.doRead(SftpInputStreamAsync.java:195)
at
org.apache.sshd.sftp.client.impl.SftpInputStreamAsync.transferTo(SftpInputStreamAsync.java:152)
`
This behavior does not occur in version 2.12.1, so I suspect it's a
regression introduced in 2.13.1 or later.
- Is this a known issue?
- Is there a recommended workaround for downloading large files with newer
versions?
Thanks a lot for your support and for maintaining this project!
### Actual behavior
.
### Expected behavior
.
### Relevant log output
```Shell
```
### Other information
_No response_
--
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]