Bug 708437

Summary: sealert copies full description to clipboard instead of selected text
Product: Red Hat Enterprise Linux 6 Reporter: Toni Willberg <twillber>
Component: setroubleshootAssignee: Daniel Walsh <dwalsh>
Status: CLOSED ERRATA QA Contact: Karel Srot <ksrot>
Severity: low Docs Contact:
Priority: medium    
Version: 6.1CC: ksrot, mmalik, syeghiay
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: setroubleshoot-3.0.38-1.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-06 09:49:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Toni Willberg 2011-05-27 16:08:55 UTC
Description of problem:

 Full sealert description is copied to copy buffer instead of selected text.

Version-Release number of selected component (if applicable):

 setroubleshoot-server-2.2.94-1.el6.x86_64

How reproducible:

 Always.

Steps to Reproduce:
1. Do something to generate a SELinux Security Alert
2. Open the sealert GUI, select a string of any legth of the description (top part, not of "full error output". Press ctrl+c, crtl+ins.
3. Open other application, for example gedit. Paste clipboard buffer.
  
Actual results:

 The "full error output" text is copied to clipboard and pasted to target application.

Expected results:

 Only selected text area should be copied.

 [Copy to Clipboard] button's alt text says it's copying full description, which is OK.

Additional info:

 Especially annoying when trying to copy one line and paste it to IRC client...  :)

 Usability bug.

Comment 3 Daniel Walsh 2011-07-18 14:34:04 UTC
Fixed in setroubleshoot-3.0.38-1.el6

Comment 6 Karel Srot 2011-10-18 12:09:51 UTC
I am unable to verify this bug because new sealert GUI is different from the old one. 
I tried to copy some test from the sealert window and it is not working properly:

- I am able to copy the text from the Details window (both with Ctrl-C;Ctrl-V and Ctrl+Insert;Shift+Insert)
- I am NOT able to copy the text from the "Troubleshoot/Then this is a solution" field. Ctrl+Insert;Shift+Insert. But Ctrl-C and Ctrl-V works.

setroubleshoot-server-3.0.38-2.1.el6.x86_64

Comment 7 Karel Srot 2011-10-18 12:11:39 UTC
Re #c6
There is a typo, should be

- I am NOT able to copy the text from the "Troubleshoot/Then this is a
solution" field with Ctrl+Insert;Shift+Insert. But Ctrl-C and Ctrl-V works.

Comment 8 Daniel Walsh 2011-10-18 14:16:05 UTC
This is a standard text window in X.  I am not sure why other mechanisms other then Ctrl-C and Ctrl-V would or would not work.  Those are the only ones I use.

Comment 10 errata-xmlrpc 2011-12-06 09:49:18 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.

http://rhn.redhat.com/errata/RHBA-2011-1509.html