Your message dated Tue, 8 Jul 2008 14:45:04 +0200
with message-id <[EMAIL PROTECTED]>
and subject line Re: python-twisted: twisted.protocols.ftp list() and nlst() 
functions broken
has caused the Debian Bug report #256491,
regarding python-twisted: twisted.protocols.ftp list() and nlst() functions 
broken
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)


-- 
256491: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=256491
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: python-twisted
Version: 1.2.0-1.1
Severity: normal


The FTPClient list() and nlst() functions fail to work properly.
Rather than send a command like "NLST <directory>" to the ftp server,
they break the command into characters and send them as independent
commands.

This seems to be a result of the FTPClient.recieveFromConnection()
function expecting a list of commands, rather than a single command.
So the fairly straightforward fix is to turn a line like:

  return self.receiveFromConnection('NLST ' + self.escapePath(path), protocol)

into

  return self.receiveFromConnection(['NLST ' + self.escapePath(path)], protocol)

However I am new to twisted, and not particularly familiar with the
FTPClient package, so I am reluctant to submit a patch.

Just for reference, log output from a vsftp server looks like this:

Sun Jun 27 09:00:03 2004 [pid 31825] [ftp] FTP command: Client "66.30.12.29", 
"N"
Sun Jun 27 09:00:03 2004 [pid 31825] [ftp] FTP response: Client "66.30.12.29", 
"500 Unknown command."
Sun Jun 27 09:00:03 2004 [pid 31825] [ftp] FTP command: Client "66.30.12.29", 
"L"
Sun Jun 27 09:00:03 2004 [pid 31825] [ftp] FTP response: Client "66.30.12.29", 
"500 Unknown command."
Sun Jun 27 09:00:03 2004 [pid 31825] [ftp] FTP command: Client "66.30.12.29", 
"S"
Sun Jun 27 09:00:03 2004 [pid 31825] [ftp] FTP response: Client "66.30.12.29", 
"500 Unknown command."
Sun Jun 27 09:00:03 2004 [pid 31825] [ftp] FTP command: Client "66.30.12.29", 
"T"
Sun Jun 27 09:00:03 2004 [pid 31825] [ftp] FTP response: Client "66.30.12.29", 
"500 Unknown command."
Sun Jun 27 09:00:03 2004 [pid 31825] [ftp] FTP command: Client "66.30.12.29"
Sun Jun 27 09:00:03 2004 [pid 31825] [ftp] FTP response: Client "66.30.12.29", 
"500 Unknown command."
Sun Jun 27 09:00:03 2004 [pid 31825] [ftp] FTP command: Client "66.30.12.29", 
"."
Sun Jun 27 09:00:03 2004 [pid 31825] [ftp] FTP response: Client "66.30.12.29", 
"500 Unknown command."


-- System Information:
Debian Release: 3.0
Architecture: i386
Kernel: Linux ios 2.4.22-1-k7 #5 Sat Oct 4 14:11:12 EST 2003 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages python-twisted depends on:
ii  python2.3-twisted             1.2.0-1.1  Event-based framework for internet

-- no debconf information



--- End Message ---
--- Begin Message ---
Version: 8.1.0-1

Fixed at least in 8.1.0-1, or in an earlier version.
see comment in
http://twistedmatrix.com/trac/ticket/690


--- End Message ---

Reply via email to