Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1346261 - two times authentication are required when connecting to vm by ovirt uri
two times authentication are required when connecting to vm by ovirt uri
Status: CLOSED ERRATA
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: mingw-virt-viewer (Show other bugs)
4.0.3
x86_64 Unspecified
medium Severity medium
: ovirt-4.0.1
: ---
Assigned To: Default Assignee for SPICE Bugs
SPICE QE bug list
:
Depends On: 1346256
Blocks:
  Show dependency treegraph
 
Reported: 2016-06-14 07:42 EDT by Fabiano Fidêncio
Modified: 2016-08-23 16:53 EDT (History)
15 users (show)

See Also:
Fixed In Version: mingw-virt-viewer-2.0-11.el7 mingw-libgovirt-0.3.4-2
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1346256
Environment:
Last Closed: 2016-08-23 16:53:31 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: Spice
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2016:1681 normal SHIPPED_LIVE rhevm-spice-client bug fix and enhancement update for RHV 4.0 2016-09-02 17:09:20 EDT

  None (edit)
Description Fabiano Fidêncio 2016-06-14 07:42:20 EDT
+++ This bug was initially created as a clone of Bug #1346256 +++

Description of problem:
two times authentication are required when connecting to vm by ovirt uri

Version-Release number of selected component (if applicable):
libgovirt-0.3.3-2.el7.x86_64
virt-viewer-2.0-8.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Prepare a running vm in ovirt 3.6.
2. Got the ca file from ovirt 3.6.
$ wget http://rhevm3.6-hp-dl360eg8-03/ca.crt
3. Connect the vm by remote-viewer with ovirt uri.
$ remote-viewer --ovirt-ca-file=ca.crt ovirt://rhevm3.6-hp-dl360eg8-03/$your_vm
4. An authentication dialog pops up, then type correct username and password and click OK.

Actual results:
an authentication dialog pops up again.

Expected results:
The second authentication is not necessary.

Additional info:
1) when the second authentication dialog pops up, click cancel button to cancel it directly, foreign menu can display correctly.
2) when the second authentication dialog pops up, type wrong password, then click OK, after authentication failed then click cancel button to cancel it, foreign menu can't display correctly.

--- Additional comment from Christophe Fergeau on 2016-06-14 07:40:28 EDT ---

This is a regression introduced by the sso-token support patches, namely https://git.gnome.org/browse/libgovirt/commit/?id=d3683c20e62d889e187406b3fa3fe75e00df228d

The whole commit can probably be reverted without any bad side-effect for now. More work seems to be needed for proper RHEV 4.0 support anyway.
Comment 1 Fabiano Fidêncio 2016-06-14 08:30:46 EDT
Just copying Christophe's comment on the original bug:

"(In reply to Christophe Fergeau from comment #1)

> The whole commit can probably be reverted without any bad side-effect for
> now. More work seems to be needed for proper RHEV 4.0 support anyway.

@@ -815,6 +812,7 @@ static void ovirt_proxy_set_sso_token(OvirtProxy *proxy, const char *sso_token)
     g_free(proxy->priv->sso_token);
     proxy->priv->sso_token = g_strdup(sso_token);

+    ovirt_proxy_add_header(proxy, "Prefer", NULL);
     header_value = g_strdup_printf("Bearer %s", sso_token);
     ovirt_proxy_add_header(proxy, "Authorization", header_value);
     g_free(header_value);


would probably be nice to have if the commit is reverted."
Comment 6 errata-xmlrpc 2016-08-23 16:53:31 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHEA-2016-1681.html

Note You need to log in before you can comment on or make changes to this bug.