Bug 1892198 - TypeError in 'Performance Profile' tab displayed for 'Performance Addon Operator'
Summary: TypeError in 'Performance Profile' tab displayed for 'Performance Addon Opera...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.6
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.7.0
Assignee: Jon Jackson
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-10-28 07:31 UTC by Gowrishankar Rajaiyan
Modified: 2021-02-24 15:29 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: Local 'ensureKind' function in OperandList component did not handle null 'data' arg. Consequence: If a null data arg was passed to this function, an exception was thrown. Fix: Add null coalescence when using data argument to ensure no exceptions are thrown. Result: Null data arguments are now handled gracefully.
Clone Of:
Environment:
Last Closed: 2021-02-24 15:28:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 7038 0 None closed Bug 1892198: Fix runtime error on operand details page. 2021-02-17 21:10:00 UTC
Red Hat Product Errata RHSA-2020:5633 0 None None None 2021-02-24 15:29:05 UTC

Description Gowrishankar Rajaiyan 2020-10-28 07:31:46 UTC
Description of problem:
There are multiple 'Performance Profile' tabs displayed for 'Performance Addon Operator' and one of them shows 'TypeError'.


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


How reproducible: Always


Steps to Reproduce:
1. Log in to web console of 4.6 cluster
2. Install 'Performance Addon Operator'
3. Observe 'Performance Profile' tabs in 'Performance Addon Operator' operator details.

Actual results: Multiple 'Performance Profile' tab displayed, while 1 of the tab displays error


Expected results: No error.


Additional info:

TypeError
Description:
Cannot read property 'map' of undefined


Component Trace:
in OperandList
    in div
    in div
    in div
    in ListPageWrapper_
    in Unknown
    in Unknown
    in O
    in Unknown
    in O
    in div
    in Unknown
    in O
    in O
    in MultiListPage
    in Unknown
    in o
    in ListPage
    in Unknown
    in O
    in t
    in t
    in div
    in Data
    in StatusBox
    in div
    in Unknown
    in Unknown
    in Unknown
    in Unknown
    in O
    in Unknown
    in O
    in Unknown
    in o
    in DetailsPage
    in ClusterServiceVersionsDetailsPage
    in l
    in Unknown
    in O
    in t
    in t
    in div
    in div
    in section
    in PageSection
    in Unknown
    in O
    in div
    in div
    in DrawerMain
    in DrawerContent
    in div
    in Drawer
    in NotificationDrawer
    in Unknown
    in O
    in main
    in div
    in Page
    in div
    in DrawerContentBody
    in div
    in div
    in DrawerMain
    in DrawerContent
    in div
    in Drawer
    in Unknown
    in O
    in I
    in l
    in O
    in Unknown
    in O
    in t
    in t
    in t
    in t


Stack trace:
TypeError: Cannot read property 'map' of undefined
    at https://console-openshift-console.apps.ostest.test.metalkube.org/static/clusterserviceversion~operand~operator-hub~operator-hub-subscribe-chunk-223af7b45abe8f74e9e3.min.js:1:4081
    at OperandList (https://console-openshift-console.apps.ostest.test.metalkube.org/static/clusterserviceversion~operand~operator-hub~operator-hub-subscribe-chunk-223af7b45abe8f74e9e3.min.js:1:4251)
    at No (https://console-openshift-console.apps.ostest.test.metalkube.org/static/vendors~main-chunk-1b55e541077a2927e5dc.min.js:160:55337)
    at pa (https://console-openshift-console.apps.ostest.test.metalkube.org/static/vendors~main-chunk-1b55e541077a2927e5dc.min.js:160:62378)
    at Ks (https://console-openshift-console.apps.ostest.test.metalkube.org/static/vendors~main-chunk-1b55e541077a2927e5dc.min.js:160:99519)
    at Bs (https://console-openshift-console.apps.ostest.test.metalkube.org/static/vendors~main-chunk-1b55e541077a2927e5dc.min.js:160:84008)
    at Fs (https://console-openshift-console.apps.ostest.test.metalkube.org/static/vendors~main-chunk-1b55e541077a2927e5dc.min.js:160:81035)
    at Ms (https://console-openshift-console.apps.ostest.test.metalkube.org/static/vendors~main-chunk-1b55e541077a2927e5dc.min.js:160:79608)
    at https://console-openshift-console.apps.ostest.test.metalkube.org/static/vendors~main-chunk-1b55e541077a2927e5dc.min.js:160:41759
    at t.unstable_runWithPriority (https://console-openshift-console.apps.ostest.test.metalkube.org/static/vendors~main-chunk-1b55e541077a2927e5dc.min.js:168:3878)

Comment 1 Jon Jackson 2020-10-29 19:53:52 UTC
Opened a PR that fixes the runtime error. https://bugzilla.redhat.com/show_bug.cgi?id=1888036 covers the problem with multiple "PerformanceProfile" tabs.

Comment 2 Jon Jackson 2020-12-04 21:20:14 UTC
PR Pending Review

Comment 4 Yadan Pei 2020-12-14 07:30:22 UTC
2. Install 'Performance Addon Operator'
3. Observe 'Performance Profile' tabs in 'Performance Addon Operator' operator details, two performance profile tab is displayed, visiting them return no error. duplicate tab issue is tracked in separate bug so moving this one to VERIFIED


verified on 4.7.0-0.nightly-2020-12-13-202314

Comment 7 errata-xmlrpc 2021-02-24 15:28:37 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.7.0 security, bug fix, and enhancement 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-2020:5633


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