Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1395564 - Unneeded spaces when copying content from terminal in web console
Unneeded spaces when copying content from terminal in web console
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console (Show other bugs)
3.4.0
Unspecified Unspecified
high Severity low
: ---
: 3.7.0
Assigned To: Jessica Forrester
Yadan Pei
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-11-16 03:52 EST by Xingxing Xia
Modified: 2017-11-28 16:52 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
In the web console, copying and pasting content from the terminal could result in extra spaces being added to the end of each line. Now when you copy content from the terminal, no extra spaces are added.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-11-28 16:52:23 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Spaces_seen_in_vi_with_set_list (54.79 KB, image/png)
2016-11-16 04:06 EST, Xingxing Xia
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2017:3188 normal SHIPPED_LIVE Moderate: Red Hat OpenShift Container Platform 3.7 security, bug, and enhancement update 2017-11-28 21:34:54 EST

  None (edit)
Description Xingxing Xia 2016-11-16 03:52:53 EST
Description of problem:
Unneeded spaces when copying content from terminal in web console.
Very inconvenient if user wants to copy the original content.
CLI terminal from oc rsh does not has the issue.

Version-Release number of selected component (if applicable):
openshift v3.4.0.26

How reproducible:
Always

Steps to Reproduce:
1. On web console pod page, in Terminal Tab, execute 'cat /etc/hosts', then copy the output of the `cat` cmd, paste it in 'vi'.
2.
3.

Actual results:
1. In vi, the pasted stuff has unneeded spaces after each line, like:
# Kubernetes-managed hosts file.                                                                                                                                                                    * Here is the end of the unneeded spaces! Same below. *
127.0.0.1       localhost                                                                                                                                              
::1     localhost ip6-localhost ip6-loopback                                                                                                                           
fe00::0 ip6-localnet                                                                                                                                                   
fe00::0 ip6-mcastprefix                                                                                                                                                
fe00::1 ip6-allnodes                                                                                                                                                   
fe00::2 ip6-allrouters                                                                                                                                                 
10.129.0.19     database-1-pcp52

Expected results:
1. Should have no the unneeded spaces, lines.
Additional info:
Comment 1 Xingxing Xia 2016-11-16 04:06 EST
Created attachment 1221065 [details]
Spaces_seen_in_vi_with_set_list

PS: The bugzilla shows 'fe00::0 ip6-localnet', and so on, in 2 lines, because ip6-localnet has too many trailing spaces, thus the browser adjusts it so.
Comment 2 Jessica Forrester 2016-11-16 09:14:21 EST
I'm fairly certain this is a side effect of how the terminal widget we use works, I'm not sure there is anything we can do to fix this behavior aside from finding a different in-browser terminal to use.
Comment 3 Samuel Padgett 2017-07-24 13:27:09 EDT
This appears to be fixed with xterm.js.

https://github.com/openshift/origin-web-console/pull/1869
Comment 5 Xingxing Xia 2017-10-09 04:48:59 EDT
Verified in v3.7.0-0.143.1 with original steps. Issue is fixed, now no unneeded spaces
Comment 9 errata-xmlrpc 2017-11-28 16:52:23 EST
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://access.redhat.com/errata/RHSA-2017:3188

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