This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: ftplib doesn't follow standard
Type: behavior Stage: test needed
Components: Library (Lib) Versions: Python 3.1, Python 3.2, Python 2.7
process
Status: closed Resolution: duplicate
Dependencies: Superseder: ftplib: Strict RFC 959 (telnet in command channel)
View: 821862
Assigned To: Nosy List: BreamoreBoy, ajaksu2, eric.araujo, giampaolo.rodola, ods, phd
Priority: normal Keywords:

Created on 2006-10-13 14:46 by ods, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (7)
msg61021 - (view) Author: Denis S. Otkidach (ods) * Date: 2006-10-13 14:46
According to RFC 959 communication for the exchange of
commands and replies must follow telnet protocol, but
ftplib doesn't. This causes "550 No such file or
directory" replies when path contains '\xFF' character
(which is quite widely used in some languages).

The bug applies to all versions of Python.
msg64111 - (view) Author: Giampaolo Rodola' (giampaolo.rodola) * (Python committer) Date: 2008-03-19 21:58
I think the problem you described is up to the FTP server implementation
which does not have unicode support.
The telnet protocol is used in FTP only when dealing with ABOR and STAT
commands. It has nothing to do with pathnames.
msg84527 - (view) Author: Daniel Diniz (ajaksu2) * (Python triager) Date: 2009-03-30 07:20
Denis, can you confirm this is a Python issue? I'll close this otherwise.
msg84536 - (view) Author: Oleg Broytman (phd) * Date: 2009-03-30 11:48
This is a duplicate of the issue http://bugs.python.org/issue821862
msg84538 - (view) Author: Denis S. Otkidach (ods) * Date: 2009-03-30 11:55
Yes, it's a problem in Python library. I believe the patch proposed by
Oleg in the issue821862 is the best solution to it.
msg114839 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2010-08-24 22:19
There's a patch on issue821862.
msg114841 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2010-08-24 22:22
Mark, it’s helpful to set the superseder field when closing as duplicate. Thanks in advance :)
History
Date User Action Args
2022-04-11 14:56:20adminsetgithub: 44127
2010-08-24 22:22:15eric.araujosetsuperseder: ftplib: Strict RFC 959 (telnet in command channel)

messages: + msg114841
nosy: + eric.araujo
2010-08-24 22:19:52BreamoreBoysetstatus: open -> closed

dependencies: - ftplib: Strict RFC 959 (telnet in command channel)
versions: + Python 3.1, Python 2.7, Python 3.2, - Python 2.6
nosy: + BreamoreBoy

messages: + msg114839
resolution: duplicate
2009-05-12 17:04:25ajaksu2setstatus: pending -> open
dependencies: + ftplib: Strict RFC 959 (telnet in command channel)
2009-03-30 11:55:25odssetmessages: + msg84538
2009-03-30 11:48:31phdsetnosy: + phd
messages: + msg84536
2009-03-30 07:20:41ajaksu2setstatus: open -> pending

type: behavior
versions: + Python 2.6
nosy: + ajaksu2

messages: + msg84527
stage: test needed
2008-03-19 21:58:52giampaolo.rodolasetnosy: + giampaolo.rodola
messages: + msg64111
2006-10-13 14:46:33odscreate