Received: from eggs.gnu.org ([2001:4830:134:3::10]:44876) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZQEk1-0002vP-Vm for qemu-devel@nongnu.org; Fri, 14 Aug 2015 09:09:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZQEjy-0004R0-NN for qemu-devel@nongnu.org; Fri, 14 Aug 2015 09:09:49 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46351) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZQEjy-0004Qv-II for qemu-devel@nongnu.org; Fri, 14 Aug 2015 09:09:46 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id 38D3E8F25C for ; Fri, 14 Aug 2015 13:09:46 +0000 (UTC) Date: Fri, 14 Aug 2015 15:09:44 +0200 From: Christophe Fergeau Message-ID: <20150814130944.GI8732@edamame.cdg.redhat.com> References: <1439556435-20541-1-git-send-email-cfergeau@redhat.com> <20150814125459.GJ7776@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="b+chlBtRKJDCtqTb" Content-Disposition: inline In-Reply-To: <20150814125459.GJ7776@redhat.com> Subject: Re: [Qemu-devel] [PATCH] spice: Allow to set password even if disable-ticketing was used List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Daniel P. Berrange" Cc: qemu-devel@nongnu.org --b+chlBtRKJDCtqTb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hey, On Fri, Aug 14, 2015 at 01:54:59PM +0100, Daniel P. Berrange wrote: > On Fri, Aug 14, 2015 at 02:47:15PM +0200, Christophe Fergeau wrote: > > Before commit b1ea7b79e1, it was possible to start with -spice > > disable-ticketing, and then use the "set_password spice" command to > > enable ticketing with SPICE. Since commit b1ea7b79e1 this is no longer > > possible as qemu_spice_set_ticket() will return an error unless the > > 'auth' type is "spice". When ticketing is disabled, 'auth' is "none" so > > the attempt to set password fails. > >=20 > > This commit allows to call qemu_spice_set_ticket() when 'auth' is "none" > > and changes 'auth' to "spice" when this happens. >=20 > IMHO we should not be changing the authentication method as a side > effect of trying to set the password. >=20 > If app has disabled ticketing, it should remain disabled and the > set password call is right to return an error. >=20 In general I agree with you. However in this case, this used to be working until ~1 year ago, and this change of behaviour caused a bug in oVirt (oVirt side is being fixed). This is why I sent this patch. The intent of commit b1ea7b seems to be to prevent qemu_spice_set_passwd() from being called when SASL is used, and does not mention at all whether preventing going from auth being "none" to "spice" is intentional. If this change of behaviour was an intentional bug fix, and if we are fine with asking for oVirt changes for this, then I'm ok with dropping this patch. Christophe --b+chlBtRKJDCtqTb Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCAAGBQJVzeiYAAoJEKnYwhQprGyCHnUP/0s7VM7scfIYtPps8C9lXbBl +v1D3bbeHNa0wKhQ+MqBMeqwDOjSb7PtWs74/fIWQIBb/GQ4303++dpCvBRucfeu dBgxNpd+5WqMoDr1eXdMRhZXSW+/I7OBV6pausucAGexq+ZfwpK3lQrfJ9FRoW6S rATJItQmKNHZV3XO1D7y7Y5mA+72tw5fJNmWRLA7SK54g9HjqWLRYDqBqe8jW6j8 rFz1NgS6BIbPDZ3sxo7YRZ3Tu7/DBRquPCSNazheGfpfNel0BW4yz4/ycihKzRl2 5siPZ3hgDK4LoB1DErWGM6OVsyFZN8P9Bi1uf4iC0u7qvk11tjsqX7iXf+eFOdeB t3cZOPr/Z8Z5Inzn8PthHjBEYdWP16ALcG5JacVjR4VGwZbXAMC0yK7E5tLlJaM+ TF/PyyMjF6ZsDaX8tI1rOZ2XZMypJI9MlDyPuz4N7LuMMGklYBfMcrESPvrFJ2gh jif9Kv0Rn9bnzcVepdAa8u+UQGQsjmKdAACjCyLA7KVIZpkdI/2Sl939byAtmg9X xovcqboYN5uLjE945fVAIISA/VLvaZOHuWufyYl1tUcfavF9q4Ofh6W7sS+YZP+H k8Vom4q98TVapwJRqzwKbDeSpgIMcbT7b12b8rnzjX6rVF1R5ycM1Y19m3i3Puyd mCa09kiMNItt9dwRXasl =sZhS -----END PGP SIGNATURE----- --b+chlBtRKJDCtqTb--