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

Guillaume Nodet resolved SSHD-105.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 0.6.0

Thx a ton guys!

Committing to https://svn.apache.org/repos/asf/mina/sshd/trunk ...
        M       
sshd-core/src/main/java/org/apache/sshd/server/sftp/SftpSubsystem.java
Committed r1090126


> sftp: com.jcraft.jsch client can't get files
> --------------------------------------------
>
>                 Key: SSHD-105
>                 URL: https://issues.apache.org/jira/browse/SSHD-105
>             Project: MINA SSHD
>          Issue Type: Bug
>    Affects Versions: 0.5.0
>         Environment: windows xp
>            Reporter: Ilya Basin
>             Fix For: 0.6.0
>
>         Attachments: 
> 0001-sftp-only-add-SSH_FXP_DATA-end-of-file-marker-if-ver.patch, 
> testjcraftsftp.zip
>
>
> com.jcraft.jsch.ChannelSftp.get(String src, String dst, SftpProgressMonitor 
> monitor, int mode) throws exception when trying to get a file from Apache 
> sshd.
> No problem with jcraft<-->OpenSSH.
> No problem with sftp command line tool<-->Apache sshd either.
> {code}
> 4:
>         at com.jcraft.jsch.ChannelSftp._get(ChannelSftp.java:980)
>         at com.jcraft.jsch.ChannelSftp.get(ChannelSftp.java:832)
>         at org.apache.sshd.TestJcraftSftp.getfile(TestJcraftSftp.java:127)
>         at 
> org.apache.sshd.TestJcraftSftp.testJcraftSftp(TestJcraftSftp.java:138)
> ...
> Caused by: java.lang.IndexOutOfBoundsException
>         at java.io.PipedInputStream.read(PipedInputStream.java:355)
>         at com.jcraft.jsch.ChannelSftp.fill(ChannelSftp.java:2325)
>         at com.jcraft.jsch.ChannelSftp.fill(ChannelSftp.java:2317)
>         at com.jcraft.jsch.ChannelSftp.checkStatus(ChannelSftp.java:1930)
>         at com.jcraft.jsch.ChannelSftp._sendCLOSE(ChannelSftp.java:1943)
>         at com.jcraft.jsch.ChannelSftp._get(ChannelSftp.java:975)
>         ... 26 more
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.656 sec <<< 
> FAILURE!
> {code}
> com.jcraft.jsch sftp client is used in Talend Open Studio 
> http://www.talendforge.org/
> Test case attached/

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to