[virt-tools-list] [virt-viewer] app, vnc: Don't retry to authenticate when vvfile authentication fails
Fabiano Fidêncio
fidencio at redhat.com
Sun Jul 3 18:30:32 UTC 2016
When connecting to a RHEVM/oVirt machine through an expired vvfile the
user ends up in an endless loop of getting an error message, pressing
"Okay", re-scheduling a new connection retry. getting an error message
due to the expired vvfile and so on.
In order to avoid the issue, let's not re-schedule the connection retry
when the user tries to connect through a vvfile and it fails.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
---
src/virt-viewer-app.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/virt-viewer-app.c b/src/virt-viewer-app.c
index 1634827..f983db2 100644
--- a/src/virt-viewer-app.c
+++ b/src/virt-viewer-app.c
@@ -1452,7 +1452,8 @@ static void virt_viewer_app_auth_refused(VirtViewerSession *session,
/* if the session implementation cannot retry auth automatically, the
* VirtViewerApp needs to schedule a new connection to retry */
- priv->authretry = !virt_viewer_session_can_retry_auth(session);
+ priv->authretry = (!virt_viewer_session_can_retry_auth(session) &&
+ !virt_viewer_session_get_file(session));
}
static void virt_viewer_app_auth_unsupported(VirtViewerSession *session G_GNUC_UNUSED,
--
2.7.4
More information about the virt-tools-list
mailing list