[Spice-devel] Always get Invalid password while trying to connect to spice server
Frediano Ziglio
fziglio at redhat.com
Wed Jan 2 14:39:46 UTC 2019
>
> Hey,
>
> On Wed, Dec 26, 2018 at 01:03:38PM +0100, Niccolò Belli wrote:
> > I just noticed that the problem looks limited to special characters.
> > For example if I set "Password" as password it works, while if I set
> > "Password%%" it doesn't. It's weird because both my server and my desktop
> > client use the same US English layout. It's even more weird because the
> > same
> > password used to work fine before.
>
> I've been able to bisect this to
> https://git.qemu.org/?p=qemu.git;a=commit;h=8bca4613
> which is new in qemu 3.1.0
> For what it's worth, when you set 'Password%%', you'll be able to
> connect with 'Password%' (ie double % becomes single %).
> I've sent a patch fixing this to qemu-devel, but it does not appear yet
> in its archives.
>
> Christophe
>
I think this was the original problem with '%'.
However it seems that virt-manager has some issue quoting.
To check it, use a "problematic" HTML/XML characters (like any in "<>&'""), set
a password with one or more of these and check the xml file. Strings are double
quoted for instance setting "xxx&" you get "xxx∓amp;" instead of just
"xxx&". As these "experiments" do not require Qemu/SPICE I expect to be
a bug in virt-manager or libvirt.
Frediano
More information about the Spice-devel
mailing list