clj-commons / clj-commons/clj-ssh

Corruption in files sent via SFTP put depending on SFTP server

Open
#61 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Clojure
Stars
241
Forks
66
PR merge metrics
No merged PRs in 30d

Description

I am not sure under what circumstances this occurs but I've seen what appears to be transmission characters corrupting larger files when transferred to some, but not all, SFTP servers. In the case I saw this was on > 500Kbyte files (but may occur on smaller) being transferred to a MOVEit Transfer SFTP server, version 12.0.2.149.
This appears to be a bug in the underlying JSch library in version 0.1.53 or earlier. See the JSch release notes here: http://www.jcraft.com/jsch/ChangeLog
I have tried bumping the version of JSch to 0.1.55 in my codebase and this appears to resolve the issue although I have not fully tested all the features of clj-ssh under that version.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by checking how clj-ssh declares and uses JSch for SFTP put, then compare behavior with JSch 0.1.53 and 0.1.55 using files over 500 KB against the reported MOVEit Transfer 12.0.2.149 server. Done means confirming whether the newer JSch version prevents corruption without breaking other clj-ssh features.

Written by the indexing model from the issue text.

Assessment

Tech stack
clojure, java
Domain
networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.