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 931592 Details for
Bug 873963
RFE: Add virt-install --force-url-distro to work with URLs that disable directory listing
[?]
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]
virt-manager-ignore-error-403-on-directories.patch
virt-manager-ignore-error-403-on-directories.patch (text/plain), 873 bytes, created by
Leonardo Chiquitto
on 2014-08-27 16:47:00 UTC
(
hide
)
Description:
virt-manager-ignore-error-403-on-directories.patch
Filename:
MIME Type:
Creator:
Leonardo Chiquitto
Created:
2014-08-27 16:47:00 UTC
Size:
873 bytes
patch
obsolete
>Ignore HTTP error 403 if the location is a directory. This allows >the OS detection procedure to succeed when Indexes are disabled >on the HTTP server. > >diff --git a/virtinst/urlfetcher.py b/virtinst/urlfetcher.py >index b51e524..7117264 100644 >--- a/virtinst/urlfetcher.py >+++ b/virtinst/urlfetcher.py >@@ -139,8 +139,11 @@ class _HTTPImageFetcher(_URIImageFetcher): > request.get_method = lambda: "HEAD" > urllib2.urlopen(request) > except Exception, e: >- logging.debug("HTTP hasFile: didn't find %s: %s", path, str(e)) >- return False >+ if path.endswith("/") and e.code == 403: >+ logging.debug("HTTP hasFile: indexing disabled in %s?.", path) >+ else: >+ logging.debug("HTTP hasFile: didn't find %s: %s", path, str(e)) >+ return False > return True > >
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 873963
: 931592