Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1006200

Summary: Disconnecting during copy-paste causes copy-paste + context menu to stop working
Product: Red Hat Enterprise Linux 7 Reporter: Hans de Goede <hdegoede>
Component: spice-vdagentAssignee: Default Assignee for SPICE Bugs <rh-spice-bugs>
Status: CLOSED CURRENTRELEASE QA Contact: Desktop QE <desktop-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.0CC: acathrow, cfergeau, dblechte, hdegoede, mbarta, mkrcmari
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: spice-vdagent-0.14.0-5.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1003977 Environment:
Last Closed: 2014-03-11 07:34:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Hans de Goede 2013-09-10 08:31:11 UTC
Cloning bug 1003977 for RHEL-7 since RHEL-7 is affected too.

+++ This bug was initially created as a clone of Bug #1003977 +++

Description of problem:
When remote-viewer window is closed during copying of a large amount of data (e.g. contents of /usr/share/dict/words) from client to guest and reconnecting again, the copy-paste function stops working. Furthermore, clicking the left mouse button to call the context menu also no longer works.

Only restarting the vdagent service restores both functionalities. 

Version-Release number of selected component (if applicable):
Host/Client/Guest: RHEL 6.5 x86_64

spice-vdagent-0.14.0-1.el6.x86_64
qemu-kvm-0.12.1.2-2.398.el6.x86_64
spice-gtk-0.20-7.el6.x86_64
spice-server-0.12.4-3.el6.x86_64
virt-viewer-0.5.6-7.el6.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Have a RHEL 6.5 guest with vdagent running
2. Copy a large amount of text from client to guest
3. During the process, disconnect by closing the remote-viewer window
4. Reconnect (no text should be pasted in guest)
5. Try pasting some text to the guest or calling any context menu (by clicking the left mouse button)

Actual results:
The copy-paste function no longer works and context menu doesn't show up.

Expected results:
Copy-paste works after reconnection and calling context menus works as expected.

Additional info:

--- Additional comment from Hans de Goede on 2013-09-09 10:06:39 EDT ---

Thanks for the bug-report. I've reproduced, debugged and wrote a fix for this.

This is fixed by this commit:
http://cgit.freedesktop.org/spice/linux/vd_agent/commit/?id=ad6ea7594a11d8a35be84a8ae2e8403ea3344a3b

Adding devel-ack.

Comment 1 Hans de Goede 2013-09-10 09:02:11 UTC
This is fixed in spice-vdagent-0.14.0-5.el7 moving to MODIFIED.

Comment 3 Hans de Goede 2014-03-11 07:34:19 UTC
This has long been fixed, closing this with a resolution of CURRENTRELEASE.