homepage

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.

Author jjlee
Recipients
Date 2006年04月15日.20:03:49
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
This fixes 1357260 and 1281692.
As suggested in the initial comment for 1357260, the
patch simply removes the code that does an NLST before
the attempt to actually fetch the file, since some
server operators turn off file listing (presumably in
an attempt to provide increased security of some kind).
 "Easier to ask forgiveness than get permission"
applies to the FTP protocol as much as to Python :-)
FWIW, I verified that this allows retrieval in some
cases where it wasn't previously, using proftpd 1.2.10
(gentoo ebuild r7) with this configuration directive
placed inside the <Anonymous ~ftp></Anonymous> directive:
 <Limit LIST NLST>
 DenyAll
 </Limit>
Without the patch, I get a 450 when doing a urlopen on
files accessible from that server (using either urllib
or urllib2). With the patch, I can retrieve the files.
History
Date User Action Args
2007年08月23日 15:48:17adminlinkissue1470976 messages
2007年08月23日 15:48:17admincreate

AltStyle によって変換されたページ (->オリジナル) /