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:
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.
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.
This appears to be fixed with xterm.js. https://github.com/openshift/origin-web-console/pull/1869
Verified in v3.7.0-0.143.1 with original steps. Issue is fixed, now no unneeded spaces
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