Bug 1851017

Summary: Position of text cursor in ace-editor wrong and hence unable to edit templates
Product: Red Hat Satellite Reporter: Anand Agrawal <aagrawal>
Component: Provisioning TemplatesAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Roman Plevka <rplevka>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 6.7.0CC: agadhave, mhulan, vegard.torvund, wclark
Target Milestone: 6.8.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1862240 (view as bug list) Environment:
Last Closed: 2020-10-27 13:03:32 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
See the attached webm file none

Description Anand Agrawal 2020-06-25 12:39:21 UTC
Created attachment 1698778 [details]
See the attached webm file

Description of problem:

If the text line is long, the cursor position is wrong. Example

Cursor position: " hello Wo|rld" (= position after o)
You enter "12"

Result: " hello Worl|d12"



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

6.7

How reproducible:
Only at customer end.

Steps to Reproduce:
1.
2.
3.

Actual results:

If the text line is long, the cursor position is wrong. Example

Cursor position: " hello Wo|rld" (= position after o)
You enter "12"

Result: " hello Worl|d12"



Expected results:

If the text line is long, the cursor position is wrong. Example

Cursor position: " hello Wo|rld" (= position after o)
You enter "12"

Result: " hello Wo12rld"

Additional info:
This is fixed in upstream https://projects.theforeman.org/issues/29344

Comment 4 Roman Plevka 2020-07-03 12:16:14 UTC
VERIFIED
on sat6.8.0-7

tested in Version 81.0.4044.138 
and firefox 76.0.1 (64-bit)

the Ace editor now performs correctly and the reported behavior is gone.
I also tried to change the size of the window during the editing and everything worked fine.

Comment 5 wclark 2020-07-09 05:46:34 UTC
HOTFIX is available for Satellite 6.7.1. To install the Hotfix, please follow the below instructions.

1. Since the HF RPM is too large to be provided as a Bugzilla attachment, please open a case with Red Hat Technical Support to request the HF RPM

2. Take a complete backup or snapshot or your Satellite server

3. Copy the HF RPM to Satellite server

4. # rpm -Uvh --nodeps /root/foreman-1.24.1.21-2.HOTFIXRHBZ1851017.el7sat.noarch.rpm

5. # satellite-maintain service restart

Comment 9 errata-xmlrpc 2020-10-27 13:03:32 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 (Important: Satellite 6.8 release), 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-2020:4366