[Python-bugs-list] [ python-Bugs-487193 ] ftplib violates rfc1123 section 4.1.2.6

noreply@sourceforge.net noreply@sourceforge.net
Thu, 29 Nov 2001 11:30:50 -0800


Bugs item #487193, was opened at 2001-11-29 11:29
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=487193&group_id=5470

Category: Python Library
Group: Python 2.1.1
Status: Open
Resolution: None
Priority: 5
Submitted By: Suchandra Thapa (ssthapa)
Assigned to: Nobody/Anonymous (nobody)
Summary: ftplib violates rfc1123 section 4.1.2.6

Initial Comment:
RFC 1123 specifies that ftp clients can not depend on
227 responses to pasv commands having the format given
in the rfc 959.  The ftplib assumes that the pasv
parameters are returned within parentheses.  In
particular ftplib breaks when downloading binaries from
an anonftpd servre. I've included a patch that uses the
re module to obtain the pasv parameters instead.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=487193&group_id=5470