Bug 1477171

Summary: Copy-paste for images is broken from Windows 10 Guest to Client.
Product: Red Hat Enterprise Linux 8 Reporter: Andrei Stepanov <astepano>
Component: spice-vdagent-winAssignee: Default Assignee for SPICE Bugs <rh-spice-bugs>
Status: CLOSED ERRATA QA Contact: SPICE QE bug list <spice-qe-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: ---CC: apinnick, astepano, bsanford, cfergeau, dblechte, lsurette, mtessun, rbalakri, rduda, rh-spice-bugs, srevivo, tpelka, uril, victortoso
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: vdagent-win-4.1.5 mingw-spice-vdagent-0.9.0-2 Doc Type: Bug Fix
Doc Text:
Previously, an old CxImage library was using an obsolete libpng, preventing copy/paste of supported images from a Windows guest to Windows and Linux clients. The currently release fixes libpng, so that copy/paste with the clipboard works correctly.
Story Points: ---
Clone Of:
: 1482971 (view as bug list) Environment:
Last Closed: 2018-05-15 18:02:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Spice RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1482971    
Attachments:
Description Flags
dumpclip.exe run on Client
none
dumpclip.exe run on Guest
none
Program to dump MsWindows clipboard. none

Description Andrei Stepanov 2017-08-01 12:10:08 UTC
SPICE protocol supports copy-paste for different types of data between client and guest. This mechanism is broken when users tries to copy an image from Windows10 Guest and Paste it to Client.

Guest: Windows 10
spice-qxl-wddm-dod-0.18-1
vdagent-win-4.1-3

How reproducible: always

Steps to Reproduce:
1. Log in to Admin or User portal.
2. Have a running Windows 10 VM.
3. Connect to remote desktop of the VM.
4. In the Windows10 open a paint program.
5. Copy an image from paint.
6. Try to paste image at client.

Actual results: cannot-copy paste image data from guest to client.

Additional info: This bug doesn't depend on client.

Comment 1 Victor Toso 2017-08-01 12:41:54 UTC
Could you please attach the logs from vdagent-win and the client?

Comment 2 Victor Toso 2017-08-01 12:48:28 UTC
Also, could you please double check if this also happens on windows 7?

Comment 3 Uri Lublin 2017-08-01 13:02:06 UTC
The image (bmp/png) copy/paste failure is a known issue with the
mingw build and has already been fixed upstream.
To be fixed on the next build.

Comment 4 Andrei Stepanov 2017-08-01 14:25:42 UTC
Copy-paste image bug from Guest->Client has place only for Windows10 guest. Windows7 guest doesn't have such bug.

Comment 5 Victor Toso 2017-08-01 14:39:09 UTC
Considering comment #3

Comment 7 David Blechter 2017-08-18 14:02:30 UTC
This bug has been cloned to the RHEV-M .z stream:
https://bugzilla.redhat.com/show_bug.cgi?id=1482971

Comment 10 Andrei Stepanov 2017-08-21 16:56:13 UTC
Created attachment 1316426 [details]
dumpclip.exe run on Client

Comment 11 Andrei Stepanov 2017-08-21 16:57:35 UTC
Created attachment 1316427 [details]
dumpclip.exe run on Guest

Image is selected and copied to Clipboard inside Windows 10 Guest MsPaint.

Comment 12 Andrei Stepanov 2017-08-21 16:58:50 UTC
Created attachment 1316429 [details]
Program to dump MsWindows clipboard.

Comment 13 Frediano Ziglio 2017-08-22 14:49:24 UTC
Verified by me and Uri, posted a patch at https://lists.freedesktop.org/archives/spice-devel/2017-August/039362.html.

Comment 18 errata-xmlrpc 2018-05-15 18:02:06 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-2018:1544

Comment 19 Franta Kust 2019-05-16 13:07:32 UTC
BZ<2>Jira Resync