096afbb01d
detection virtinst-ignore-error-403-on-directories.patch (Leonardo Chiquitto) - bnc#886311 - Xen Virtual Machine Manager does not display CPU usage stats - bnc#888289 - After domU shutdown, sometimes virt-manager doesn't refresh the domU status. virtman-sync-vm-startup-for-cpu-usage.patch - add patch: virtinst-ppc64le.patch initial ppc64le support for virt-install - bnc#875111 - When kvm guest is in crashed state, virt-manager reports guest as still running, no option to shutdown/destroy virtman-allow-destroy-from-shutdown-menu-of-crashed-vm.patch - bnc#892003 - create virtual machine with Virt Manager randomly times out with large memory guest virtman-increase-setKeepAlive-count.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=194
25 lines
948 B
Diff
25 lines
948 B
Diff
bnc#892821
|
|
|
|
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.
|
|
|
|
Index: virt-manager-1.0.1/virtinst/urlfetcher.py
|
|
===================================================================
|
|
--- virt-manager-1.0.1.orig/virtinst/urlfetcher.py
|
|
+++ virt-manager-1.0.1/virtinst/urlfetcher.py
|
|
@@ -140,8 +140,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
|
|
|
|
|