Red Hat Bugzilla – Bug 482952
urlgrab does not raise an exception on ftp errors
Last modified: 2010-07-02 13:04:31 EDT
Description of problem:
The python-urlgrabber module fails to raise an exception from ftp errors.
Try to urlgrab() a non-existing file from an ftp server and urlgrab() will not raise an exception and just create an empty file.
This bug is breaking anaconda's ability to correctly determine if the RHEL CD-ROM ISOs are loopback mounted on an ftp server.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. use attached script to download the non-existing file ftp://ftp.redhat.com/pub/foo.txt
script reports a successful download
urlgrab should raise an exception
ftp://ftp.redhat.com/pub/foo.txt really does not exist
$ lftp -e 'get pub/foo.txt; exit' ftp.redhat.com
get: Access failed: 550 Failed to open file. (pub/foo.txt)
Created attachment 330299 [details]
Example run of demo script from comment #1
Saved as foo.txt
$ cat foo.txt
This request was evaluated by Red Hat Product Management for
inclusion, but this component is not scheduled to be updated in
the current Red Hat Enterprise Linux release. If you would like
this request to be reviewed for the next minor release, ask your
support representative to set the next rhel-x.y flag to "?".
There's no patch, urlgrabber in RHEL-6 is v. different and there's no IT linked ... so I'm going to NAK this.
Development Management has reviewed and declined this request. You may appeal
this decision by reopening this request.