[Libvir] [PATCH] Fix xen://hostname URIs with no trailing slash

Richard W.M. Jones rjones at redhat.com
Tue Oct 16 10:30:30 UTC 2007


It turns out that xmlParseURI gives an error if asked to parse the 
string "xen://".

This string arises because after a URI such as "xen://hostname" has been 
stripped of its server field, it becomes "xen://" on the remote end of 
the connection, and the failure of xmlParseURI causes the whole 
connection to fail.

I'm not sure of the best way to fix it.  The attached patch is a 
semi-hack which at least allows xen://hostname to work.  It's not a 
problem for qemu because these URIs should always contain a path.  Nor 
for test for the same reason.  Not sure about OpenVZ.

Rich.

-- 
Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom.  Registered in
England and Wales under Company Registration No. 03798903
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libvirt-xen-no-trailing-slash.patch
Type: text/x-patch
Size: 1206 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20071016/21be8e04/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20071016/21be8e04/attachment-0003.bin>


More information about the libvir-list mailing list