Bug 1983693 - Import from YAML shows warning when just pressing enter
Summary: Import from YAML shows warning when just pressing enter
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.9
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: 4.9.0
Assignee: Joe Caiani
QA Contact: Siva Reddy
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-19 14:03 UTC by Christoph Jerolimov
Modified: 2021-10-18 17:40 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-10-18 17:39:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 9779 0 None None None 2021-08-10 19:55:53 UTC
Red Hat Product Errata RHSA-2021:3759 0 None None None 2021-10-18 17:40:15 UTC

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


Note You need to log in before you can comment on or make changes to this bug.