Bug 1941264

Summary: Unable to escape kiosk mode during authentication
Product: Red Hat Enterprise Linux 8 Reporter: Jakub Janků <jjanku>
Component: virt-viewerAssignee: Default Assignee for SPICE Bugs <rh-spice-bugs>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: low Docs Contact:
Priority: unspecified    
Version: 8.5CC: berrange, juzhou, tyan, tzheng, victortoso, virt-maint, xiaodwan
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-25 10:23:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jakub Janků 2021-03-21 09:00:06 UTC
Description of problem:
When the user tries to connect in kiosk mode to a server that requires password authentication, there's no way to cancel the authentication process and close the application. Pressing the "Cancel" button or trying to close the auth dialog doesn't work, the dialog reappears.

This might be desired behavior given what the documentation says about kiosk mode. But because virt-viewer doesn't grab the keyboard before it's connected, you can still escape (e.g. by pressing Alt+Tab and killing it manually). So as a result, it only causes unnecessary inconvenience -- for example when you realize that you're connecting to a wrong machine you don't know the password to.

On the other hand, I can imagine that it can be undesirable to allow users to end the authentication, for example:
you setup the connection -> the remote machine later restarts -> authentication must be performed again, but now you don't want others to close it, because that would mean escaping.

How reproducible:
100%

Steps to Reproduce:
1. prepare a vm that requires password authentication
2. connect with virt-viewer in kiosk mode
$ virt-viewer -k -c ...
3. try to close the dialog or press "Cancel"

Actual results:
Authentication cannot be cancelled.

Expected results:
Authentication can be cancelled when trying to connect for the first time.

Additional info:

Comment 2 Victor Toso 2022-08-25 10:23:11 UTC

*** This bug has been marked as a duplicate of bug 1941398 ***