Bug 1751359 - Console crashed when switch to "Edit Form" view to create "Custom Resource" managed by the Operator
Summary: Console crashed when switch to "Edit Form" view to create "Custom Resource" m...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 4.2.0
Assignee: Alec Merdler
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-09-11 19:46 UTC by tony.wu
Modified: 2019-10-16 06:41 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-10-16 06:40:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 2699 0 None None None 2019-09-12 14:04:00 UTC
Github openshift console pull 2720 0 None None None 2019-09-13 22:08:18 UTC
Red Hat Product Errata RHBA-2019:2922 0 None None None 2019-10-16 06:41:02 UTC

Description tony.wu 2019-09-11 19:46:30 UTC
Description of problem:

After successfully installed the Operator, tried to create Custom Resource instance with "Edit Form" view, the Web Console crashed.


Version-Release number of selected component (if applicable):
4.2.0-0.ci-2019-09-11-103058

How reproducible:
100% reproducible with "Dynatrace OneAgent Operator", "Akka Cluster Operator", "MariaDB", "MemSQL", and more.

Steps to Reproduce:
1. Installed Operator from OperatorHub
2. Go to "Installed Operator" details view
3. Go to "Create Instance" view, switch to "Edit Form" view --> console crashed.

Actual results:
console crashed.

Expected results:
rendered creation form


Additional info:

Comment 1 Jakub Hadvig 2019-09-12 13:01:41 UTC
Could not reproduce on 4.2.0-0.ci-2019-09-12-015306 cluster.

Could you please provide the version you hit the issue?

Comment 2 Samuel Padgett 2019-09-12 13:25:59 UTC
Uncaught TypeError: Cannot read property 'spec' of undefined
    at create-operand.tsx:151
    at Array.map (<anonymous>)
    at CreateOperandForm (create-operand.tsx:144)
    at renderWithHooks (react-dom.development.js:12938)
    at mountIndeterminateComponent (react-dom.development.js:15020)
    at beginWork (react-dom.development.js:15625)
    at performUnitOfWork (react-dom.development.js:19312)
    at workLoop (react-dom.development.js:19352)
    at renderRoot (react-dom.development.js:19435)
    at performWorkOnRoot (react-dom.development.js:20342)

Comment 3 Samuel Padgett 2019-09-12 13:26:24 UTC
I can reproduce.

Comment 4 Jakub Hadvig 2019-09-12 13:30:38 UTC
Sorry for the confusion. Can reproduce as well. But with different error:

Uncaught TypeError: Cannot read property 'includes' of undefined
    at create-operand.tsx:161
    at Array.some (<anonymous>)
    at create-operand.tsx:161
    at Array.map (<anonymous>)
    at CreateOperandForm (create-operand.tsx:161)
    at renderWithHooks (react-dom.development.js:12938)
    at mountIndeterminateComponent (react-dom.development.js:15020)
    at beginWork (react-dom.development.js:15625)
    at performUnitOfWork (react-dom.development.js:19312)
    at workLoop (react-dom.development.js:19352)

Comment 6 Yanping Zhang 2019-09-16 02:01:17 UTC
payload 4.2.0-0.nightly-2019-09-15-052022
Checked on ocp 4.2 with above version, install MariaDB operator, then create mariadb instance with "Edit Form" view, could create successfully. The page doesn't crash.
The bug has been fixed, so move it to Verified.

Comment 7 errata-xmlrpc 2019-10-16 06:40: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, 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/RHBA-2019:2922


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