Bug 1983693

Summary: Import from YAML shows warning when just pressing enter
Product: OpenShift Container Platform Reporter: Christoph Jerolimov <cjerolim>
Component: Management ConsoleAssignee: Joe Caiani <jcaiani>
Status: CLOSED ERRATA QA Contact: Siva Reddy <schituku>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.9CC: aos-bugs, jokerman, kdoberst, yapei
Target Milestone: ---   
Target Release: 4.9.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: 2021-10-18 17:39:54 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:

Description Christoph Jerolimov 2021-07-19 14:03:33 UTC
Description of problem:
When the user imports a YAML and presses just enter in the textarea the console breaks and shows an error while in react dev mode (logs an warning when in production)

Version-Release number of selected component (if applicable):
4.8 and 4.9 master (tested with commit 32237741dbab53269d41e844948ae19042958d02)

How reproducible:
Always

Steps to Reproduce:
1. Open console and click on the plus icon on the main navigation
2. Textarea is automatically focus, if user presses enter to add a new line an error was logged

Actual results:
  Error
  Cannot read property 'mappings' of undefined

  Call Stack
   findManagedMetadata
   fold
   tryFolding


Expected results:
No error in dev mode and no warning in browser log in production mode.

Additional info:
None

Comment 1 Christoph Jerolimov 2021-07-19 14:35:39 UTC
Happen in 4.8, but it doesn't break the UI.

Comment 2 Joe Caiani 2021-07-23 18:55:30 UTC
Will investigate next sprint.

Comment 4 Siva Reddy 2021-08-19 00:26:49 UTC
Created attachment 1815399 [details]
No Error

4.9.0-0.nightly-2021-08-18-084341

Steps to Reproduce:
1. Open console and click on the plus icon on the main navigation
2. Textarea is automatically focus, if user presses enter to add a new line no error is logged.

Comment 7 errata-xmlrpc 2021-10-18 17:39:54 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 (Moderate: OpenShift Container Platform 4.9.0 bug fix and security update), 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-2021:3759