Bug 482952 - urlgrab does not raise an exception on ftp errors
Summary: urlgrab does not raise an exception on ftp errors
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: python-urlgrabber
Version: 5.3
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: James Antill
QA Contact: BaseOS QE
URL:
Whiteboard:
Depends On:
Blocks: 445862
TreeView+ depends on / blocked
 
Reported: 2009-01-28 23:24 UTC by Jeff Bastian
Modified: 2010-07-02 17:04 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-07-02 17:04:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
demo script (238 bytes, text/plain)
2009-01-28 23:25 UTC, Jeff Bastian
no flags Details

Description Jeff Bastian 2009-01-28 23:24:24 UTC
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):
python-urlgrabber-3.1.0-5.el5.noarch

How reproducible:
every time

Steps to Reproduce:
1. use attached script to download the non-existing file ftp://ftp.redhat.com/pub/foo.txt
  
Actual results:
script reports a successful download

Expected results:
urlgrab should raise an exception

Additional info:
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)

Comment 1 Jeff Bastian 2009-01-28 23:25:06 UTC
Created attachment 330299 [details]
demo script

Comment 2 Jeff Bastian 2009-01-28 23:26:47 UTC
Example run of demo script from comment #1

   $ ./get-redhat-foo.py
   Saved as foo.txt
   $ cat foo.txt
   $

Comment 3 RHEL Program Management 2009-03-26 17:22:04 UTC
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 "?".

Comment 4 RHEL Program Management 2009-11-06 19:22:40 UTC
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 "?".

Comment 5 James Antill 2010-07-02 16:56:39 UTC
There's no patch, urlgrabber in RHEL-6 is v. different and there's no IT linked ... so I'm going to NAK this.

Comment 6 RHEL Program Management 2010-07-02 17:04:31 UTC
Development Management has reviewed and declined this request.  You may appeal
this decision by reopening this request.


Note You need to log in before you can comment on or make changes to this bug.