-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

severity 609231 wishlist
retitle 609231 filename parser in qemu chokes on colons
tags 609231 + upstream confirmed
thanks

07.01.2011 18:59, Michal Suchanek wrote:
> Package: qemu-kvm
> Version: 1:0.12.5+dfsg-5
> Severity: normal
> 
> Apparently kvm cannot handle CD images with odd names.
> 
> While I don't insist that such image names should work it points at some
> bug in argument handling which is something to be avoided.
> 
> $ ln -s 
> clonezilla-live-1.2.6-58-amd64.iso\?r\=http\:%2F%2Fsourceforge.net%2Fprojects%2Fclonezilla%2Ffiles%2Fclonezilla_live_testing%2F1.2.6-58%2F
>  clonezilla-live-1.2.6-58-amd64.iso
> $ kvm -cdrom clonezilla-live-1.2.6-58-amd64.iso
> $ kvm -cdrom 
> clonezilla-live-1.2.6-58-amd64.iso\?r\=http\:%2F%2Fsourceforge.net%2Fprojects%2Fclonezilla%2Ffiles%2Fclonezilla_live_testing%2F1.2.6-58%2F
>  
> qemu: could not open disk image
> clonezilla-live-1.2.6-58-amd64.iso?r=http:%2F%2Fsourceforge.net%2Fprojects%2Fclonezilla%2Ffiles%2Fclonezilla_live_testing%2F1.2.6-58%2F:
>  Invalid argument

This happens when filename contains a colon character (:),
which is documented to be used as a delimiter between a
protocol name and actual filename (URL).  Note that kvm
supports http as file store protocol, so you can specify

 -cdrom http://host/some/where/file.iso

Currently kvm does not have a way to escape the delimiter,
nor does it check if the portion of filename before the
delimiter makes any sense as protocol name (for the above
example, chars like - and . and ? before : surely makes
the protocol "name" invalid).

I'm downgrading this bug to a wishlist for a better filename
parser in qemu, plus better diagnostics.

Thanks!

/mjt
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iJwEAQECAAYFAk0tXdwACgkQUlPFrXTwyDiq9AP/XRRvMY185txcY5Y9ChJl8loY
dCgDpenFm/98HSlOvgNAkMRizbUJEfuUgRx5iSRLna/edRyZIrGOqNR/09ZL+8Z9
Ijq0IzT8H8jSU88j2Uj8eJaEIzSWACmePyz4IhMcejOnixmFm0hdKNiJ3LIiPubE
2TgWYNtMgxZvyDz7CF0=
=/TMS
-----END PGP SIGNATURE-----



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to