Bug 1477110

Summary: [trello zoxUAO2w] Cannot place cursor in terminal when text are selected outside
Product: OpenShift Container Platform Reporter: shahan <hasha>
Component: Management ConsoleAssignee: Samuel Padgett <spadgett>
Status: CLOSED CURRENTRELEASE QA Contact: XiaochuanWang <xiaocwan>
Severity: low Docs Contact:
Priority: medium    
Version: 3.7.0CC: aos-bugs, jokerman, mmccomas, pweil, yapei
Target Milestone: ---   
Target Release: 3.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-10-31 13:01:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
cursor none

Description shahan 2017-08-01 08:45:52 UTC
Description of problem:
  Cannot place cursor in terminal when text is selected outside

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

  OpenShift Master:v3.6.0-rc.0+3994e0b-376
  Kubernetes Master:v1.7.0+695f48a16f 

How reproducible:

Always

Steps to Reproduce:
1.Login in web console, and create pod
 $oc create -f pod_with_two_containers.json 
2.enter the pod page and switch to the Terminal tab
3.select random text out of the terminal, and try to place the cursor in the terminal via left click.

Actual results:
 Could not place cursor in the terminal and input any commands.

Expected results:
  It should place cursor in the terminal when text are selected outside
Additional info:
  target release 3.7.0

Comment 1 shahan 2017-08-01 08:47:43 UTC
Created attachment 1307468 [details]
cursor

Comment 2 Samuel Padgett 2017-08-01 17:35:00 UTC
Opened upstream issue in xterm.js. This was reproducible with their demo app outside of the web console.

https://github.com/sourcelair/xterm.js/issues/827

Moving the severity to low. While annoying, it's easy to work around and doesn't block any user functionality.

Comment 3 Samuel Padgett 2017-08-03 12:41:15 UTC
The upstream issue is fixed. We're simply waiting on a new xterm.js release.

Comment 4 Samuel Padgett 2017-08-04 14:15:37 UTC
Fixed in xterm.js 2.9.0. We just need to bump the version in origin-web-console.

Comment 6 openshift-github-bot 2017-08-14 15:28:14 UTC
Commit pushed to master at https://github.com/openshift/origin-web-console

https://github.com/openshift/origin-web-console/commit/02672a7124e68d771512f30fe83131b546d8b473
Bug 1477110 - bump kubernetes-container-terminal 2.1.0, xterm.js 2.9.2

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1477110

Comment 7 Xingxing Xia 2017-09-20 08:33:56 UTC
hecked in v3.7.0-0.126.4 per comment 0 steps. The problem is gone. When text outside of terminal is selected and cursor is put in terminal, text selection is gone and cursor can be put in.
Sam, please help move to ON_QA if no other concern, thx

Comment 9 shahan 2017-10-31 02:21:19 UTC
Per the comment 7 verified by xingxing xia, and also checked the problem in the latest OCP version (v3.7.0-0.184.0), the bug has been fixed, changed to vierified.