Hi,

I had a strange error where an SFTP client was unable to upload files: the 
transfer would start, but all the files ended up at zero length.
It turns out that the client was bugged and was assuming that all the SFTP file 
handles were "\0". This works when connecting to OpenSSH, as it always names 
its file handles "0", "1", "2" etc., but it doesn't work when connecting to 
Apache MINA (which uses random strings for file handles).

This patch adds extra logging when in DEBUG mode - I found that most SFTP 
protocol messages were being logged at DEBUG level, but not all.

I needed this extra logging to diagnose my issue: perhaps it will be useful to 
someone else later.

Best,


Rich


Richard Bradley
Tel : 020 7485 7500 ext 3230 | Fax : 020 7485 7575

softwire
Sunday Times Best Small Companies - UK top 25 five years running
Web : www.softwire.com<http://www.softwire.com/> | Follow us on Twitter : 
@SoftwireUK<https://twitter.com/SoftwireUK>
Addr : 110 Highgate Studios, 53-79 Highgate Road, London NW5 1TL
Softwire Technology Limited. Registered in England no. 3824658. Registered 
Office : Gallery Court, 28 Arcadia Avenue, Finchley, London. N3 2FG

Reply via email to