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 1024312 - The viewer window still open if remote-viewer gui tool cannot connect the guest
Summary: The viewer window still open if remote-viewer gui tool cannot connect the guest
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: virt-viewer
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Christophe Fergeau
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On: 1024309
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-29 11:24 UTC by CongDong
Modified: 2015-03-05 13:38 UTC (History)
8 users (show)

Fixed In Version: virt-viewer-0.6.0-1.el7
Doc Type: Bug Fix
Doc Text:
Cause: Connection failures not handled properly Consequence: After retrying and connecting properly, the window will show the old (failed) URL as the window title Fix: Close the display window upon connection failure, and reset the title on each retry Result: Windows always show the correct title.
Clone Of: 1024309
Environment:
Last Closed: 2015-03-05 13:38:28 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:0295 0 normal SHIPPED_LIVE virt-viewer bug fix and enhancement update 2015-03-05 17:33:00 UTC

Description CongDong 2013-10-29 11:24:12 UTC
+++ This bug was initially created as a clone of Bug #1024309 +++
This can be reproduced on RHEL7 with:
virt-viewer-0.5.7-2.el7.x86_64
So clone it to RHEL7.

Description of problem:
If the remote-viewer gui tool fail to connect the guest, the viewer window still open.
After that, input a right uri to connect a guest, the window title will keep the wrong one you input first time.

Version-Release number of selected component (if applicable):
virt-viewer-0.5.6-8.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1. # remote-viewer
2. Input a wrong address which does not exist, and try to connect
"spice://123456"
3. An error dialog comes out:
"Unable to connect to the graphic server spice://123456"
4. Click "OK" button, the gui tool will show again.
5. Input a right uri and connect the guest.

Actual results:
Step4, After click "OK", the remote-viewer gui tool will show again, but the remote-viewer window for the wrong address still opened.

Step5, can connect the guest successfully, but the window title is still the wrong one "spice://123456"

Expected results:
The window should be closed. 
But, if the window is reasonable, the window title should be corrected when connect another guest.

Additional info:

Comment 2 hyao@redhat.com 2013-11-20 09:31:54 UTC
I can reproduce the bug with package below: 
# rpm -qa virt-viewer
virt-viewer-0.5.7-2.el7.x86_64

remote-viewer gui tool fail to connect the guest, and the viewer window still open.
Open viewer by the correct url, the window title will keep the wrong one

Comment 3 Christophe Fergeau 2013-11-20 10:25:30 UTC
(In reply to CongDong from comment #0)
> If the remote-viewer gui tool fail to connect the guest, the viewer window
> still open.

Should be fixed by https://git.fedorahosted.org/cgit/virt-viewer.git/commit/?id=2f890cf2f5faec0d859df3d8ce91a8f9ad7f5dfd

> After that, input a right uri to connect a guest, the window title will keep
> the wrong one you input first time.

And this one should be fixed by https://git.fedorahosted.org/cgit/virt-viewer.git/commit/?id=b19a246c5cac54ff0570d482f78cc0172ea2d884

Comment 5 Jonathon Jongsma 2014-07-10 02:36:43 UTC
Fixed by rebase to 0.6.0

Comment 7 CongDong 2014-07-21 06:05:29 UTC
I can reporduce with : virt-viewer-0.5.7-7.el7.x86_64

VERIFY:
Steps:
1. # remote-viewer
2. Input a wrong address which does not exist, and try to connect
"spice://123456"
3. An error dialog comes out:
"Unable to connect to the graphic server spice://123456"
4. Click "OK" button, the gui tool will show again.
5. Input a right uri and connect the guest.

Result:
Step4, error message is ok, and after the gui show again, no other window
Step5, can connect guest, the message in window title is right.

Also test with other uri like:
vnc://xxx.xxx.xxx.xxx:xxxx
spice://xxx.xxx.xxx.xxx:xxxx
$connection_file

All of them can get the expected result.

As the result, set VERIFIED.

Comment 9 errata-xmlrpc 2015-03-05 13:38:28 UTC
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/RHBA-2015-0295.html


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