[Patches] [ python-Patches-821862 ] ftplib: Strict RFC 959 (telnet in command channel)

SourceForge.net noreply at sourceforge.net
Sat Oct 2 18:15:30 CEST 2004


Patches item #821862, was opened at 2003-10-11 22:04
Message generated for change (Settings changed) made by phd
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=821862&group_id=5470

Category: Library (Lib)
>Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Oleg Broytmann (phd)
Assigned to: Nobody/Anonymous (nobody)
Summary: ftplib: Strict RFC 959 (telnet in command channel)

Initial Comment:
RFC 959 *requires* to implemet a portion of the telnet
protocol in the command channel. Without this ftlib has
problems interacting with RFC959-compliant server (most
Unix ftp daemons are compliant) if, e.g., a directory
or a filename contains russian characters.

The attched patch implements a minimal requirement (it
doubles chr(255) in the .putline() method), but it
allows a programer to choose if a session will be
strict or not. Default value is "not strict" because
most clients (even Unix clients) do not implemet this
telnet option, and most Windoze servers do not implemet it.

Tested with ProFTPd on GNU/Linux system.

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=821862&group_id=5470


More information about the Patches mailing list