RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1941398 - virt-viewer display a white screen after input an empty password for a vnc vm in kiosk mode
Summary: virt-viewer display a white screen after input an empty password for a vnc vm...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: virt-viewer
Version: 8.5
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: rc
: ---
Assignee: Victor Toso
QA Contact: Virtualization Bugs
URL:
Whiteboard:
: 1941264 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-03-22 04:14 UTC by zhoujunqin
Modified: 2022-09-22 07:27 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-09-22 07:27:54 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
screenshot for white screen (10.44 KB, image/png)
2021-03-22 04:15 UTC, zhoujunqin
no flags Details

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.


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