Red Hat Bugzilla – Bug 1478280
[trello zoxUAO2w] Could delete command prompt when delete Chinese characters in terminal
Last modified: 2017-09-01 13:55:29 EDT
Description of problem:
When user wrongly input Chinese characters in terminal and try delete them, however, could delete command prompt unexpectedly.
version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Login in web console, and create pod
$ oc create -f https://raw.githubusercontent.com/openshift-qe/v3-testfiles/master/pods/pod_with_two_containers.json
2.Enter pod page and switch to terminal tab
3. Input some Chinese characters into terminal, and try delete
Will also delete Chinese characters. see attachment
Should only delete these Chinese characters
target release: 3.7.0
Created attachment 1308934 [details]
I can reproduce in the web console, but not in the xterm.js demo against current xterm.js master. So this is either a bug specific to the web console / kubernetes-container-terminal or fixed in xterm.js 2.9.0.
I'm able to reproduce this with `oc rsh` outside of the web console. This doesn't seem to be specific to the web console terminal.
Also reproducible with Docker outside of OpenShift using this command
docker run -it --entrypoint=/bin/sh yapei/hello-openshift
Using these rpms of docker, I cannot reproduce the issue.
$ env |grep -i term
$ docker run -it --entrypoint=/bin/sh yapei/hello-openshift
Unable to find image 'yapei/hello-openshift:latest' locally
Trying to pull repository registry.access.redhat.com/yapei/hello-openshift ...
Trying to pull repository docker.io/yapei/hello-openshift ...
latest: Pulling from docker.io/yapei/hello-openshift
a3ed95caeb02: Pull complete
b7b24afce32f: Pull complete
355b03195ea7: Pull complete
xterm beeped when I attempted to delete into the prompt.