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: urllib violates rfc 959
Type: Stage:
Components: Library (Lib) Versions: Python 2.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: doko, georg.brandl, jjlee, josiahcarlson
Priority: normal Keywords:

Created on 2005-09-04 17:30 by doko, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (5)
msg26210 - (view) Author: Matthias Klose (doko) * (Python committer) Date: 2005-09-04 17:30
[forwarded from http://bugs.debian.org/324023]

python's urllib does the following things "on the line"
when retrieving
a file by ftp:
send(3, "PASV\r\n", 6, 0)               = 6
send(3, "NLST ftp-master.debian.org\r\n", 28, 0) = 28

But RFC 959 states:
  This command [NLST] causes a directory listing to be
sent from server
  to user site.  The pathname should specify a
directory or other
  system-specific file group descriptor

So, according to the robustness principle, it is wrong
that python
aborts file transfer if the server refuses to support
NLST on files.
msg26211 - (view) Author: Josiah Carlson (josiahcarlson) * (Python triager) Date: 2005-09-08 06:18
Logged In: YES 
user_id=341410

"The pathname should specify a directory or other
system-specific file group descriptor."

If the system (ftp server) does not support a particular
'file name' as a 'file group descriptor', it seems to me
that the system (ftp server) is braindead.
msg26212 - (view) Author: John J Lee (jjlee) Date: 2006-02-06 01:16
Logged In: YES 
user_id=261020

Bug 1357260 reports the same issue for both urllib and urllib2.
msg26213 - (view) Author: John J Lee (jjlee) Date: 2006-04-15 20:06
Logged In: YES 
user_id=261020

Patch 1470976 fixes this bug.
msg26214 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-04-30 09:28
Logged In: YES 
user_id=849994

Fixed by applying said patch.
History
Date User Action Args
2022-04-11 14:56:12adminsetgithub: 42341
2005-09-04 17:30:12dokocreate