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 1348624

Summary: Can not copy/paste from motif application
Product: Red Hat Enterprise Linux 7 Reporter: Radek Duda <rduda>
Component: spice-gtkAssignee: Christophe Fergeau <cfergeau>
Status: CLOSED ERRATA QA Contact: SPICE QE bug list <spice-qe-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.3CC: astepano, bsanford, cfergeau, pgrunt, rbalakri, rduda, tlavigne, tpelka
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: spice-gtk-0.31-6.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-04 01:22:33 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 Radek Duda 2016-06-21 15:36:34 UTC
Description of problem:
Cope/paste from client to guest does not work for motif client application.


Version-Release number of selected component (if applicable):
guest:
rhel 7.3
spice-vdagent-0.14.0-10.el7.x86_64
client:
tested rhel6.8,rhel7.3
nedit-5.5-23.el6.x86_64


How reproducible:always


Steps to Reproduce:
1.on client install NEdit
2.type some text and copy it (ctrl+C)
3.open any text editor in guest VM and paste (ctrl+P)

Actual results:nothing is pasted


Expected results: paste the copied text from client to guest


Additional info:
vdagent log of guest VM:
    un 21 17:11:26 localhost.localdomain spice-vdagent[9288]: 0x10fe300 received clipboard release, arg1: 1, arg2: 0, size 0
    Jun 21 17:11:26 localhost.localdomain spice-vdagent[9288]: primary: New selection owner: 0
    Jun 21 17:11:28 localhost.localdomain spice-vdagent[9288]: 0x10fe300 received clipboard grab, arg1: 1, arg2: 0, size 4
    Jun 21 17:11:28 localhost.localdomain spice-vdagent[9288]: primary: New selection owner: 10485761
    Jun 21 17:11:29 localhost.localdomain spice-vdagent[9288]: 0x10fe300 received clipboard release, arg1: 0, arg2: 0, size 0
    Jun 21 17:11:29 localhost.localdomain spice-vdagent[9288]: clipboard: New selection owner: 0
    Jun 21 17:11:29 localhost.localdomain spice-vdagent[9288]: 0x10fe300 received clipboard grab, arg1: 0, arg2: 0, size 4
    Jun 21 17:11:29 localhost.localdomain spice-vdagent[9288]: clipboard: New selection owner: 10485761
    Jun 21 17:11:29 localhost.localdomain spice-vdagent[9288]: clipboard: sent 5 targets:
    Jun 21 17:11:29 localhost.localdomain spice-vdagent[9288]: clipboard: TARGETS
    Jun 21 17:11:29 localhost.localdomain spice-vdagent[9288]: clipboard: UTF8_STRING
    Jun 21 17:11:29 localhost.localdomain spice-vdagent[9288]: clipboard: text/plain;charset=UTF-8
    Jun 21 17:11:29 localhost.localdomain spice-vdagent[9288]: clipboard: text/plain;charset=utf-8
    Jun 21 17:11:29 localhost.localdomain spice-vdagent[9288]: clipboard: STRING
    Jun 21 17:11:29 localhost.localdomain spice-vdagent[9288]: clipboard: sent 5 targets:
    Jun 21 17:11:29 localhost.localdomain spice-vdagent[9288]: clipboard: TARGETS
    Jun 21 17:11:29 localhost.localdomain spice-vdagent[9288]: clipboard: UTF8_STRING
    Jun 21 17:11:29 localhost.localdomain spice-vdagent[9288]: clipboard: text/plain;charset=UTF-8
    Jun 21 17:11:29 localhost.localdomain spice-vdagent[9288]: clipboard: text/plain;charset=utf-8
    Jun 21 17:11:29 localhost.localdomain spice-vdagent[9288]: clipboard: STRING
    Jun 21 17:11:29 localhost.localdomain spice-vdagent[9288]: clipboard: sent 5 targets:
    Jun 21 17:11:29 localhost.localdomain spice-vdagent[9288]: clipboard: TARGETS
    Jun 21 17:11:29 localhost.localdomain spice-vdagent[9288]: clipboard: UTF8_STRING
    Jun 21 17:11:29 localhost.localdomain spice-vdagent[9288]: clipboard: text/plain;charset=UTF-8
    Jun 21 17:11:29 localhost.localdomain spice-vdagent[9288]: clipboard: text/plain;charset=utf-8
    Jun 21 17:11:29 localhost.localdomain spice-vdagent[9288]: clipboard: STRING
    Jun 21 17:11:42 localhost.localdomain spice-vdagent[9288]: clipboard: unexpected selection type GTK_TEXT_BUFFER_CONTENTS
    Jun 21 17:11:42 localhost.localdomain spice-vdagent[9288]: clipboard: sent 5 targets:
    Jun 21 17:11:42 localhost.localdomain spice-vdagent[9288]: clipboard: TARGETS
    Jun 21 17:11:42 localhost.localdomain spice-vdagent[9288]: clipboard: UTF8_STRING
    Jun 21 17:11:42 localhost.localdomain spice-vdagent[9288]: clipboard: text/plain;charset=UTF-8
    Jun 21 17:11:42 localhost.localdomain spice-vdagent[9288]: clipboard: text/plain;charset=utf-8
    Jun 21 17:11:42 localhost.localdomain spice-vdagent[9288]: clipboard: STRING
    Jun 21 17:11:42 localhost.localdomain spice-vdagent[9288]: 0x10fe300 sent clipboard request, arg1: 0, arg2: 1, size 0
    Jun 21 17:11:42 localhost.localdomain spice-vdagent[9288]: 0x10fe300 received clipboard data, arg1: 0, arg2: 0, size 0
    Jun 21 17:11:42 localhost.localdomain spice-vdagent[9288]: clipboard: expecting type 1 clipboard data got 0
    Jun 21 17:11:42 localhost.localdomain spice-vdagent[9288]: clipboard: unexpected selection type COMPOUND_TEXT
    Jun 21 17:11:42 localhost.localdomain spice-vdagent[9288]: 0x10fe300 sent clipboard request, arg1: 0, arg2: 1, size 0
    Jun 21 17:11:42 localhost.localdomain spice-vdagent[9288]: 0x10fe300 received clipboard data, arg1: 0, arg2: 0, size 0
    Jun 21 17:11:42 localhost.localdomain spice-vdagent[9288]: clipboard: expecting type 1 clipboard data got 0

Comment 1 Radek Duda 2016-06-21 15:38:59 UTC
timing:
17:11:26 - copy
17:11:42 - paste

Comment 2 Christophe Fergeau 2016-06-21 15:44:34 UTC
We had https://bugzilla.redhat.com/show_bug.cgi?id=1348624 in the past which was related to motif
Looks like we need to handle additional text targets ?

Comment 3 Radek Duda 2016-06-21 15:48:14 UTC
(In reply to Christophe Fergeau from comment #2)
> We had https://bugzilla.redhat.com/show_bug.cgi?id=1348624 in the past which
> was related to motif
> Looks like we need to handle additional text targets ?
Your link redirects to this bug. You mean this one?: bug 1117764

Comment 4 Christophe Fergeau 2016-06-21 15:58:47 UTC
Yep :) thanks!

Comment 5 Andrei Stepanov 2016-06-24 10:32:12 UTC
Copy from Nedit and paste to Guest doesn't work for:

* PRIMARY selection - text is selected with a mouse
* CLIPBOARD selection - text is explicitly copied to clipboard

In both cases:

xsel/xclip always shows correct values for PRIMARY selection / CLIPBOARD selection as text is selected / copied in nedit:

xsel --output --primary
xsel --output --clipboard

xclip -selection clipboard -out
xclip -selection primary -out

nedit is built with lesstif

Comment 7 Pavel Grunt 2016-06-27 10:11:47 UTC
There is https://bugzilla.gnome.org/show_bug.cgi?id=768082 about copying issues with nedit and gtk. It has wayland in the title, but can be related

Comment 8 Christophe Fergeau 2016-08-05 16:12:57 UTC
See https://bugzilla.redhat.com/show_bug.cgi?id=1117764 which mentions nedit/motif apps as well.

Comment 10 Pavel Grunt 2016-09-08 19:58:28 UTC
Fixed in spice-gtk by commits:
b0a2ff4f205e39f87e9b54d658a27d415ee3d055
7b0de6217670e0f668aff2949fba174ed3cc0b50
b708989b12122af39144b856576c2dd234130b9c
24fe1387f966193c60d5f2c72a0f551b7ed593f1

Comment 11 Tomas Pelka 2016-09-08 20:36:56 UTC
(In reply to Pavel Grunt from comment #10)
> Fixed in spice-gtk by commits:
> b0a2ff4f205e39f87e9b54d658a27d415ee3d055
> 7b0de6217670e0f668aff2949fba174ed3cc0b50
> b708989b12122af39144b856576c2dd234130b9c
> 24fe1387f966193c60d5f2c72a0f551b7ed593f1

If so, can we still pull it to RHBA-2016:23034?

Comment 19 errata-xmlrpc 2016-11-04 01:22:33 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-2016-2229.html