[Zope] SFTPGateway problems

Brad Clements bkc at murkworks.com
Fri Mar 5 12:00:28 EST 2004


Mostly for fdrake..

FYI, Twisted 1.20 has serious issues with the ftp client. For example, the LIST 
command is sent as L\nI\n  etc.. (looks like a tuple unpack error).

I checked out Twisted from CVS and that fixes the List command, but it still doesn't 
work correctly with sftpgateway. Using an sftp client, or jEdit's FTP client plugin, I can 
list files but RETR returns nothing.

I went back to Twisted 1.1.1 (this is all on Python 2.3) and now sftp seems to work (at 
least RETR does), but the jEdit FTP plugin cannot download a file. I see this for debug 
output:

2004-03-05 11:37:38 sftpgateway.bkc:3 FTP command: PASV
2004-03-05 11:37:38 sftpgateway.bkc:3 FTP message: 227 Entering Passive Mode 
(127,0,0,1,223,245)
2004-03-05 11:37:38 sftpgateway.bkc:3 FTP command: RETR 
/Holmes/BottomNavBar.pt
2004-03-05 11:37:38 sftpgateway.bkc:3 connection lost
2004-03-05 11:37:38 sftpgateway.bkc:3 received chunk for offset 0 (1531 bytes)
2004-03-05 11:37:38 sftpgateway.bkc:3 FTP message: 150 Opening Binary mode data 
connection for file '/Holmes/BottomNavBar.pt'
2004-03-05 11:37:38 sftpgateway.bkc:3 FTP message: 226 Transfer complete
2004-03-05 11:37:38 sftpgateway.bkc:3 FTP command: QUIT
2004-03-05 11:37:38 sftpgateway.bkc:3 FTP message: 221 Goodbye.
2004-03-05 11:37:38 sftpgateway.bkc:3 lost FTP connection: connection lost

However the jEdit plugin works fine with the standard Linux sftpd.

I can't see why jEdit would drop the connection. From the client side, it's still waiting to 
receive data.  jEdit uses the open source sshtools stuff from sourceforge.

My question is, has anyone gotten jEdit to work with sftpgateway?  And warning, if you 
move beyond Twisted 1.1.1 be ready for some debugging. :-(



-- 
Brad Clements,                bkc at murkworks.com   (315)268-1000
http://www.murkworks.com                          (315)268-9812 Fax
http://www.wecanstopspam.org/                   AOL-IM: BKClements




More information about the Zope mailing list