----- Forwarded Message -----
From: Nguyen Tran Vu Linh <vlsuperman2003@...>
To: "JSch-users@..." <JSch-users@...>
Sent: Wednesday, February 9, 2011 10:54 AM
Subject: Sending .pgp with Jsch and Jzlib ArrayIndexOutOfBound Exception
I got ArrayIndexOutOfBound while using Jsch-0.1.4.x to send medium/large (encrypted/signed) .pgp files (>=60KB and without ARMOR). I just set the session config (compression.c2s and compression.s2c) to use packet compression algorithm ("zlib") and always got the above exception. The exception only occurs with .pgp file without ARMOR; with ARMOR files or normal files (not encrypted/signed) or small .pgp files (<10KB), everything is okay. I debug my application many times and I guess the bug come from Jzlib library (Compression class) because without using packet compression algorithm (e.g. keep the 2 compression parameters as default value - "none"), the client works fine.
Maybe Jsch does not fully support packet compression, please confirm.
For more details, you can see it here: https://sourceforge.net/tracker/?func=detail&aid=3138525&group_id=64920&atid=509122 (last update)