Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 838481 Details for
Bug 655856
urlgrabber does not raise an exception for non-existent files (using ftp protocol)
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
work around a bug in urllib's ftpwrapper.
BZ-655856-ftp-not-found.patch (text/plain), 841 bytes, created by
Zdeněk Pavlas
on 2013-12-18 17:21:10 UTC
(
hide
)
Description:
work around a bug in urllib's ftpwrapper.
Filename:
MIME Type:
Creator:
Zdeněk Pavlas
Created:
2013-12-18 17:21:10 UTC
Size:
841 bytes
patch
obsolete
>diff -up urlgrabber-3.1.0/urlgrabber/grabber.py.orig urlgrabber-3.1.0/urlgrabber/grabber.py >--- urlgrabber-3.1.0/urlgrabber/grabber.py.orig 2013-12-18 18:08:08.646649767 +0100 >+++ urlgrabber-3.1.0/urlgrabber/grabber.py 2013-12-18 18:14:21.453586386 +0100 >@@ -1209,6 +1209,11 @@ class URLGrabberFileObject: > else: > fo = opener.open(req) > hdr = fo.info() >+ if fo.url[:6].lower() == 'ftp://': >+ # There's a bug in ftpwrapper. It assumes ftp.nlst(file) >+ # raises an error but it does not. Fix it there. >+ if hdr.getheader('content-length') is None: >+ raise IOError('ftp error', '550 Failed to open file.') > except ValueError, e: > raise URLGrabError(1, _('Bad URL: %s') % (e, )) > except RangeError, e:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 655856
: 838481