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: urllib2 CacheFTPHandler doesn't work on multiple dirs
Type: Stage:
Components: Library (Lib) Versions: Python 2.2
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: mhammond Nosy List: jjlee, mhammond, shahms
Priority: high Keywords:

Created on 2003-05-16 22:18 by shahms, last changed 2022-04-10 16:08 by admin. This issue is now closed.

Messages (4)
msg16040 - (view) Author: Shahms E. King (shahms) Date: 2003-05-16 22:18
using the CacheFTPHandler for ftp requests in urllib2
works as expected for files in the same directory as
the original file, however, as ftpwrapper() changes the
directory only after the initial connection, any
urllib2.urlopen('ftp://...') that is in a different
directory that the initial urlopen() call will fail
with a "450: File Not Found"
msg16041 - (view) Author: John J Lee (jjlee) Date: 2003-11-30 22:12
Logged In: YES 
user_id=261020

I've submitted a fix for this as patch 851736. 
msg16042 - (view) Author: Mark Hammond (mhammond) * (Python committer) Date: 2004-05-05 12:24
Logged In: YES 
user_id=14198

I reviewed and tested the patch, and it looks good to me. 
I'll take this on (for trunk and 2.3.4) unless someone objects.
msg16043 - (view) Author: Mark Hammond (mhammond) * (Python committer) Date: 2004-05-10 07:39
Logged In: YES 
user_id=14198

Fixed on 2.3 branch:
Checking in urllib2.py;
new revision: 1.53.6.6; previous revision: 1.53.6.5

Fixed on trunk:
new revision: 1.66; previous revision: 1.65
History
Date User Action Args
2022-04-10 16:08:47adminsetgithub: 38515
2003-05-16 22:18:16shahmscreate