Bug 1941398

Summary: virt-viewer display a white screen after input an empty password for a vnc vm in kiosk mode
Product: Red Hat Enterprise Linux 8 Reporter: zhoujunqin <juzhou>
Component: virt-viewerAssignee: Victor Toso <victortoso>
Status: CLOSED WONTFIX QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: low    
Version: 8.5CC: berrange, jjanku, tyan, tzheng, victortoso, virt-maint, xiaodwan
Target Milestone: rcKeywords: Triaged
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-09-22 07:27:54 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:
Attachments:
Description Flags
screenshot for white screen none

Description zhoujunqin 2021-03-22 04:14:36 UTC
Description of problem:
virt-viewer display a white screen after input an empty password for a vnc vm in kiosk mode

Version-Release number of selected component (if applicable):
virt-viewer-9.0-10.el8.x86_64
libgovirt-0.3.7-4.el8.x86_64
gtk-vnc2-0.9.0-2.el8.x86_64


How reproducible:
100%

Steps to Reproduce:

1. Prepare a vnc guest with authentication required.

# virsh dumpxml rhel8-vnc --security-info --inactive 
...
    <graphics type='vnc' port='-1' autoport='yes' passwd='aabb'>
      <listen type='address'/>
    </graphics>


2. Open the vm by "virt-viewer $guest -k" in the kiosk mode, and then input an empty password after the authentication dialog pops up.

$ virt-viewer -c qemu:///system  rhel7.9-vnc -k

Test result:
After I input an empty password on the authentication dialog, then click "OK".
virt-viewer will show an error message as follows:

------------------------------------------------------
Unable to connect to the graphic server 127.0.0.1:5902
Unknown authentication failure: %s: Weak encryption key
------------------------------------------------------

Click 'OK', then virt-viewer will display a white screen, details please see the attachment.

What's more, without in kiosk mode, if I input an empty password, then virt-viewer prompts the above error message, 
but after click 'OK', virt-viewer will exit silently.

Actual results:
As described.

Expected results:
virt-viewer should get another chance to retry again in kiosk mode.

Additional info:

Comment 1 zhoujunqin 2021-03-22 04:15:26 UTC
Created attachment 1765137 [details]
screenshot for white screen

Comment 3 Daniel Berrangé 2021-12-02 15:28:32 UTC
With latest 1.3.0 release of gtk-vnc we now honour the empty password again correctly, so we wouldn't hit this specific problem.

Comment 5 Victor Toso 2022-08-25 10:23:11 UTC
*** Bug 1941264 has been marked as a duplicate of this bug. ***

Comment 6 Victor Toso 2022-08-25 10:26:43 UTC
Too short on time to fix this in 8.7. We can either backport or rebase gtk-vnc fix but in 8.8.
I'll assign it to myself.

Comment 7 RHEL Program Management 2022-09-22 07:27:54 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.