Hi list. Please see this ticket.
https://issues.apache.org/jira/browse/SSHD-105
Whose bug is it? Don't know the protocol.
IB> com.jcraft.jsch.ChannelSftp.get(String src, String dst, SftpProgressMonitor
monitor, int mode) throws exception when trying to get a file from Apache sshd.
IB> No problem with jcraft<-->OpenSSH.
IB> No problem with sftp command line tool<-->Apache sshd either.
IB> {code}
IB> 4:
IB> at com.jcraft.jsch.ChannelSftp._get(ChannelSftp.java:980)
IB> at com.jcraft.jsch.ChannelSftp.get(ChannelSftp.java:832)
IB> at org.apache.sshd.TestJcraftSftp.getfile(TestJcraftSftp.java:127)
IB> at
org.apache.sshd.TestJcraftSftp.testJcraftSftp(TestJcraftSftp.java:138)
IB> ...
IB> Caused by: java.lang.IndexOutOfBoundsException
IB> at java.io.PipedInputStream.read(PipedInputStream.java:355)
IB> at com.jcraft.jsch.ChannelSftp.fill(ChannelSftp.java:2325)
IB> at com.jcraft.jsch.ChannelSftp.fill(ChannelSftp.java:2317)
IB> at com.jcraft.jsch.ChannelSftp.checkStatus(ChannelSftp.java:1930)
IB> at com.jcraft.jsch.ChannelSftp._sendCLOSE(ChannelSftp.java:1943)
IB> at com.jcraft.jsch.ChannelSftp._get(ChannelSftp.java:975)
IB> ... 26 more
IB> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.656 sec
<<< FAILURE!
IB> {code}
IB> com.jcraft.jsch sftp client is used in Talend Open Studio
http://www.talendforge.org/
IB> Test case attached/
------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software
be a part of the solution? Download the Intel(R) Manageability Checker
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users