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 - Can not copy/paste from motif application
Summary: Can not copy/paste from motif application
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: spice-gtk
Version: 7.3
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Christophe Fergeau
QA Contact: SPICE QE bug list
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-06-21 15:36 UTC by Radek Duda
Modified: 2016-11-04 01:22 UTC (History)
8 users (show)

Fixed In Version: spice-gtk-0.31-6.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-04 01:22:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:2229 0 normal SHIPPED_LIVE virt-viewer, libgovirt, spice-gtk, and usbredir bug fix and enhancement update 2016-11-03 13:26:58 UTC

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


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