Bug 1539766 - Unable to copy/paste when accessing RHEL 6 VM's from a Windows 7 client using virt-viewer.
Summary: Unable to copy/paste when accessing RHEL 6 VM's from a Windows 7 client using...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: mingw-virt-viewer
Version: 4.1.6
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: ovirt-4.3.1
: 4.3.0
Assignee: Victor Toso
QA Contact: SPICE QE bug list
URL:
Whiteboard:
: 1327658 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-29 14:58 UTC by Frank DeLorey
Modified: 2020-04-15 15:38 UTC (History)
12 users (show)

Fixed In Version: spice-client-msi-4.3-1 mingw-virt-viewer-7.0-2 mingw-gtk3-3.22.30-2
Doc Type: Bug Fix
Doc Text:
Previously, when accessing RHEL 6 virtual machines from a Windows 7 client using virt-viewer, copy/paste sporadically failed. The current release fixes this issue.
Clone Of:
Environment:
Last Closed: 2019-05-08 12:36:47 UTC
oVirt Team: Spice
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 3338531 0 None None None 2018-01-30 16:14:47 UTC
Red Hat Product Errata RHEA-2019:1084 0 None None None 2019-05-08 12:36:52 UTC

Description Frank DeLorey 2018-01-29 14:58:32 UTC
Description of problem:

Unable to copy/paste when accessing RHEL 6 VM's from a Windows client using virt-viewer.  We have ensured that rhevm-guest-agent-common ( ovirt-guest-agent-common-1.0.13-5.el6.noarch ) is enabled and started on the VM's, that the Spice copy and paste is enabled in the VM (from within RHV, right click, advanced settings, console).
    --Some users can copy to the VM and not to the client or vice versa. 


Version-Release number of selected component (if applicable):

rhevm-4.1.6.2-0.1.el7
spice-client-msi-x64-4.1-6
virt-viewer both version 2.0 and 6.0 from the RHEV UI console downloads page.

How reproducible:

Randomly happening

Steps to Reproduce:
1. Install the latest virt-viewer from the RHEV Console Downloads page on a 
   Windows 7 client
2. Try copy and paste function while accessing a RHEL 6 VM from the Windows 7 
   client

Actual results:
 
Copy and Paste does not work consistently

Expected results:

Copy and Paste should work every time.


Additional info:

From a live debug session on the client:

(remote-viewer.exe:13412): GSpice-DEBUG: ../../src/decode-glz.c:374 decode_header: 90x21, id 1387, ref 1274

(remote-viewer.exe:13412): Gdk-WARNING **: ../../../gdk/win32/gdkselection-win32.c:424: OpenClipboard failed: Access is
denied.

(remote-viewer.exe:13412): Gdk-WARNING **: ../../../gdk/win32/gdkselection-win32.c:424: OpenClipboard failed: Access is
denied.

(remote-viewer.exe:13412): Gdk-WARNING **: ../../../gdk/win32/gdkselection-win32.c:424: OpenClipboard failed: Access is
denied.
(remote-viewer.exe:13412): GSpice-DEBUG: ../../src/decode-glz.c:374 decode_header: 171x24, id 1388, ref 1274

(remote-viewer.exe:13412): Gdk-WARNING **: ../../../gdk/win32/gdkselection-win32.c:424: OpenClipboard failed: Access is
denied.

(remote-viewer.exe:13412): Gdk-WARNING **: ../../../gdk/win32/gdkselection-win32.c:424: OpenClipboard failed: Access is
denied.

(remote-viewer.exe:13412): Gdk-WARNING **: ../../../gdk/win32/gdkselection-win32.c:424: OpenClipboard failed: Access is
denied.

Comment 1 Victor Toso 2018-01-29 16:19:22 UTC
This is a failure related to the OpenClipboard() Windows's API [0] that was not well handled in gdk and spice-gtk. The upstream bug [1] points that this might be handled (not fixed) by commit 6c29e8105 [2] 
 
[0] https://msdn.microsoft.com/en-us/library/windows/desktop/ms649048(v=vs.85).aspx

[1] https://bugzilla.gnome.org/show_bug.cgi?id=706610

[2] https://git.gnome.org/browse/gtk+/commit/?id=6c29e81051bd622b22fbf0

I'll try to make a reproducer and see if we can fix this in spice-gtk.

Comment 3 Frank DeLorey 2018-01-29 20:26:18 UTC
*** Bug 1327658 has been marked as a duplicate of this bug. ***

Comment 4 amashah 2018-02-05 17:12:22 UTC
Additional information, from the same case:

.\remote-viewer.exe --spice-debug C:\Users\<your username>\AppData\Local\Temp\console.vv

"He receives a modal dialog saying “Authentication required” – it has 2 fields for Username and Password, but the Username field is disabled and does not allow entry" 

"this only happens when console has been invoked via the command line in windows."

Comment 5 Victor Toso 2018-02-09 10:04:43 UTC
(In reply to amashah from comment #4)
> Additional information, from the same case:
> 
> .\remote-viewer.exe --spice-debug C:\Users\<your
> username>\AppData\Local\Temp\console.vv
> 
> "He receives a modal dialog saying “Authentication required” – it has 2
> fields for Username and Password, but the Username field is disabled and
> does not allow entry" 
> 
> "this only happens when console has been invoked via the command line in
> windows."

Seems like a different bug?

Comment 6 Victor Toso 2018-02-09 10:25:10 UTC
(In reply to Victor Toso from comment #1)
> I'll try to make a reproducer and see if we can fix this in spice-gtk.

The problem is that this failure is internal in gtk3 and the application doesn't know the failure. We can't easily workaround this in spice-gtk nor in virt-viewer.

We have built the client from RHV with mingw-gtk3-3.14.12-5.el7ev.

The 3.22 branch of gtk3 has the patch [0] which workarounds the OpenClipboard() failure. As we already use gtk3 3.22 in RHEL-7, we can rebase the mingw-gtk3 to that version and backport [0]

[0] https://gitlab.gnome.org/GNOME/gtk/commit/8caba9536cdccb6657b315c3af85

Comment 8 Victor Toso 2018-02-10 07:52:12 UTC
The plan is to do the gtk rebase and necessary fixes in RHV 4.3 and backport the new client (msi installer) to older versions of RHV

Comment 12 Yaniv Lavi 2018-07-16 11:39:29 UTC
Should this have a z stream milestone?

Comment 13 Victor Toso 2018-07-16 12:38:22 UTC
(In reply to Yaniv Lavi from comment #12)
> Should this have a z stream milestone?

As mentioned in comment #8, yes. The flag to request 4.2.z is set, what else is needed? Thanks!

Comment 14 Yaniv Lavi 2018-07-23 08:49:33 UTC
(In reply to Victor Toso from comment #13)
> (In reply to Yaniv Lavi from comment #12)
> > Should this have a z stream milestone?
> 
> As mentioned in comment #8, yes. The flag to request 4.2.z is set, what else
> is needed? Thanks!

Please set the milestone for the release you plan to fix this to.

Comment 15 Victor Toso 2018-07-23 10:38:18 UTC
(In reply to Yaniv Lavi from comment #14)
> (In reply to Victor Toso from comment #13)
> > (In reply to Yaniv Lavi from comment #12)
> > > Should this have a z stream milestone?
> > 
> > As mentioned in comment #8, yes. The flag to request 4.2.z is set, what else
> > is needed? Thanks!
> 
> Please set the milestone for the release you plan to fix this to.

As mentioned in comment #8, I plan to fix this in 4.3 and backport the msi installer with the fix to 4.2.z so 4.3 milestone seems reasonable to me while having the z-stream flag set. Please let me know if this is not correct.

Comment 16 Yaniv Lavi 2018-07-29 14:09:11 UTC
(In reply to Victor Toso from comment #15)
> (In reply to Yaniv Lavi from comment #14)
> > (In reply to Victor Toso from comment #13)
> > > (In reply to Yaniv Lavi from comment #12)
> > > > Should this have a z stream milestone?
> > > 
> > > As mentioned in comment #8, yes. The flag to request 4.2.z is set, what else
> > > is needed? Thanks!
> > 
> > Please set the milestone for the release you plan to fix this to.
> 
> As mentioned in comment #8, I plan to fix this in 4.3 and backport the msi
> installer with the fix to 4.2.z so 4.3 milestone seems reasonable to me
> while having the z-stream flag set. Please let me know if this is not
> correct.

You should set the milestone to the release you are planning to fix this on.

Comment 17 Victor Toso 2018-10-22 10:57:16 UTC
Should be fixed by rebase on Bug 1615874

I'll move to POST, this should be included in an errata to have the fix documented for customers.

Comment 18 Sandro Bonazzola 2019-01-28 09:41:16 UTC
This bug has not been marked as blocker for oVirt 4.3.0.
Since we are releasing it tomorrow, January 29th, this bug has been re-targeted to 4.3.1.

Comment 27 errata-xmlrpc 2019-05-08 12:36:47 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://access.redhat.com/errata/RHEA-2019:1084

Comment 28 Daniel Gur 2019-08-28 13:14:25 UTC
sync2jira

Comment 29 Daniel Gur 2019-08-28 13:19:27 UTC
sync2jira


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