Patches item #1726451, was opened at 2007-05-27 17:06
Message generated for change (Comment added) made by billiejoex
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1726451&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Library (Lib)
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Kenneth Loafman (loafman)
Assigned to: Nobody/Anonymous (nobody)
Summary: ftplib and ProFTPD NLST 226 without 1xx response

Initial Comment:
When ProFTPD and others do an NLST on an empty directory, they return a '226 
Transfer Complete' without a 1xx response following (passive mode).  They also 
may reset the connection, producing a '104, Connection reset by peer'.  This 
patch corrects the 226 without 1xx response.  Due to bug reports on ProFTPD 
indicating that the connection reset may be their issue, this patch does not 
address that problem.


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

Comment By: billiejoex (billiejoex)
Date: 2007-06-16 00:00

Message:
Logged In: YES 
user_id=1357589
Originator: NO

According to RFC959 the returning output of LIST and NLST commands should
be sent over the data connection.
Avoiding to open data connection and directly responding with "226
Transfer complete" when no transfer has occurred just because directory is
empty is a wrong behaviour.
The problem, if it really exists (are you really sure? It seems very
strange to me), is up to ProFTPd, not ftplib.
In case it really exists it is not within the realm of problems that
should be dealt with by base ftplib since that it's a non RFC-compliant
behaviour occurring with a particular product (ProFTPd).

Best regards

billiejoex

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1726451&group_id=5470
_______________________________________________
Patches mailing list
Patches@python.org
http://mail.python.org/mailman/listinfo/patches

Reply via email to