Bug 1805964 - console white screens with error upon login and redirecting to /dashboards
Summary: console white screens with error upon login and redirecting to /dashboards
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.4
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
: 4.5.0
Assignee: Rastislav Wagner
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks: 1805973
TreeView+ depends on / blocked
 
Reported: 2020-02-21 18:22 UTC by cvogt
Modified: 2020-07-13 17:17 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
: 1805973 (view as bug list)
Environment:
Last Closed: 2020-07-13 17:16:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
console display (218.98 KB, image/png)
2020-03-03 08:16 UTC, shahan
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 4462 0 None closed Bug 1805964: Dont fail if user cannot list cluster operators. 2021-01-28 09:41:04 UTC
Red Hat Product Errata RHBA-2020:2409 0 None None None 2020-07-13 17:17:19 UTC

Description cvogt 2020-02-21 18:22:51 UTC
Description of problem:
User's first experience can result in a white screen and an unusable web console.


How reproducible:


Steps to Reproduce:
1. create a user with roles self-provisioner and view: https://github.com/redhat-developer/devconsole-operator/blob/master/hack/install_devconsole/create_user.sh
2. login to console

Actual results:
User is redirected to the `/dashboards` page.
Screen turns white with error logged to javascript console

backend.js:6 TypeError: Cannot read property 'status' of undefined
    at l (dashboards-chunk-9ec0d2244a6aad7872df.min.js:1)
    at Ni (vendors~main-chunk-a7bf97db684d6199ee54.min.js:161170)
    at Ku (vendors~main-chunk-a7bf97db684d6199ee54.min.js:161170)
    at Bu (vendors~main-chunk-a7bf97db684d6199ee54.min.js:161170)
    at Lu (vendors~main-chunk-a7bf97db684d6199ee54.min.js:161170)
    at Du (vendors~main-chunk-a7bf97db684d6199ee54.min.js:161170)

Expected results:
App doesn't crash and user can view the web console.

Comment 1 Samuel Padgett 2020-02-21 18:29:36 UTC
This happens because this particular user can see metrics, but can't list clusteroperators. We should make sure we have appropriate error handling for any resource we request on the dashboard and probably add error boundaries.

Comment 2 Samuel Padgett 2020-02-21 18:29:50 UTC
TypeError: "operatorStatuses[0] is undefined"
    OperatorsSection OperatorStatusBody.tsx:52
    React 17
    Redux 7
    pollAndWatch k8s.ts:235
    step main-e08a38f9ee9e671758e9.js:20816
    verb main-e08a38f9ee9e671758e9.js:20797
    rejected main-e08a38f9ee9e671758e9.js:20789

Comment 5 shahan 2020-03-03 08:12:29 UTC
1. create a user with roles self-provisioner and view: https://github.com/redhat-developer/devconsole-operator/blob/master/hack/install_devconsole/create_user.sh
2. login to console with consoledeveloper

User can view console and the console works well

4.5.0-0.ci-2020-03-03-065123

Comment 6 shahan 2020-03-03 08:16:18 UTC
Created attachment 1667135 [details]
console display

Comment 9 errata-xmlrpc 2020-07-13 17:16:59 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-2020:2409


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