mingw-spice-gtk build for 3.5 has http://cgit.freedesktop.org/spice/spice-gtk/commit/?id=a8f2e2d9906f9908ab6cae0b9c36d99e5b49d05d in order to fix bug #1090122. This caused a regression with image c&p fixed by http://cgit.freedesktop.org/spice/spice-gtk/commit/?id=43e3f6ea012236b1c3759a48b24026bdeff5d7e0
+++ This bug was initially created as a clone of Bug #1154719 +++
Description of problem:
When I build spice-gtk from upstream and use it in smoketest, copy/paste of images from client to guest fail with being unable to copy the images.
The same tests pass from guest to client.
Version-Release number of selected component (if applicable):
Built spice-gtk from latest upstream => spice-gtk 0.25.48-af73-dirty
Steps to Reproduce:
1. Open guest with virt-viewer and spice-gtk (built from upstream) by LD_LIBRARY_PATH=/usr/local/lib virt-viewer spice://localhost?port=5901
2. Copy any image from client
3. Open http://ie.microsoft.com/testdrive/browser/Editing_Paste_Image/
4. Try pasting image using <Ctrl+v>
5. Image will not get copied
6. Try copying any image from guest
7. Open same webpage in client
8. Try pasting image using <Ctrl+v>. Image will get pasted.
Images gets copied from guest to client but not client to guest.
Image should get copied in both directions.
--- Additional comment from Swapna Krishnan on 2014-10-27 14:26:55 EDT ---
I checked the commits and narrowed the failure to this commit. Copy-Paste images from client to guest fails after this commit and passes before this commit.
Author: Christophe Fergeau <email@example.com>
Date: Tue Aug 12 16:17:16 2014 +0200
Ensure '\0' is not part of text clipboard data
On Windows, with some versions of gtk+, GtkSelectionData::length
will include the final '\0'.
When a string with this trailing '\0' is pasted in some linux
applications, it will be pasted as <NIL> or as an invisible character,
which is unwanted.
This commit ensures the length we send to the agent does not
include any trailing '\0'.
--- Additional comment from Christophe Fergeau on 2014-10-28 06:44:46 EDT ---
(In reply to Swapna Krishnan from comment #0)
> When I build spice-gtk from upstream
Just a note for future bugs, bugs in the upstream codebase should be filed on https://bugs.freedesktop.org/
Bugs in the Fedora component are for bugs you hit when using the fedora packages.
Thanks a lot for bisecting it down to the faulty commit, this is really helpful in fixing it!
--- Additional comment from Christophe Fergeau on 2014-10-29 09:37:53 EDT ---
Fixed upstream in http://cgit.freedesktop.org/spice/spice-gtk/commit/?id=43e3f6ea012236b1c3759a48b24026bdeff5d7e0 (and previous commit), will be in upcoming 0.26 release.
Client Win7/32 mingw-virt-viewer-0.6.0-2.el6_5
Guest Win7/64 (Guest tools 3.5-5), RHEL6.6-64 (spice-vdagent-0.14-4)
Copy from client to guest is not working (Win7's Paint shows message 'The information on the Clipboard cant' be inserted into Paint')
Copy in opposite direction works like a charm.
Will be resolved by the rebase.
Rebase built -- mingw-spice-gtk-0.26-1.el7ev.
I put -4 in built-in field which is part of mingw-virt-viewer-2.0-2.el7ev
which is a part of rhevm-spice-client 3.6-2 build
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.