Bug 2023607

Summary: console returns blank page when normal user without any projects visit Installed Operators page
Product: OpenShift Container Platform Reporter: Yadan Pei <yapei>
Component: Management ConsoleAssignee: Yadan Pei <yapei>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.10CC: aos-bugs, yapei
Target Milestone: ---   
Target Release: 4.10.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: 2022-03-10 16:27:31 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:
Bug Depends On:    
Bug Blocks: 2028286    
Attachments:
Description Flags
normal user visit Installed Operators page none

Description Yadan Pei 2021-11-16 07:03:09 UTC
Description of problem:
when user doesn't have any projects and visit Installed Operators page, console goes to blank

Version-Release number of selected component (if applicable):
4.10.0-0.nightly-2021-11-15-034648

How reproducible:
Always

Steps to Reproduce:
1. a fresh new user without any projects visit Operators -> Installed Operators page
2.
3.

Actual results:
console goes blank and we can see js error

TypeError: Cannot read properties of undefined (reading 'data')
    at Oe (clusterserviceversion-chunk-ce1dd7b46fd0d14cc031.min.js:1)
    at na (vendors~main-chunk-3d3020e3cc4dbf9aa7b2.min.js:165950)
    at Hs (vendors~main-chunk-3d3020e3cc4dbf9aa7b2.min.js:165950)
    at wc (vendors~main-chunk-3d3020e3cc4dbf9aa7b2.min.js:165950)
    at Cc (vendors~main-chunk-3d3020e3cc4dbf9aa7b2.min.js:165950)
    at _c (vendors~main-chunk-3d3020e3cc4dbf9aa7b2.min.js:165950)
    at pc (vendors~main-chunk-3d3020e3cc4dbf9aa7b2.min.js:165950)
    at vendors~main-chunk-3d3020e3cc4dbf9aa7b2.min.js:165950
    at t.unstable_runWithPriority (vendors~main-chunk-3d3020e3cc4dbf9aa7b2.min.js:166263)
    at Hi (vendors~main-chunk-3d3020e3cc4dbf9aa7b2.min.js:165950)

Expected results:
Installed Operators list page should still be rendered correctly

Additional info:

Comment 1 ralpert 2021-11-17 21:15:22 UTC
Able to reproduce with new normal user (no roles attached). Thanks for catching this! Taking a look now.

Comment 3 Yadan Pei 2021-11-29 03:01:18 UTC
PR still not included in latest nightly 4.10.0-0.nightly-2021-11-28-164900

$ oc adm release info registry.ci.openshift.org/ocp/release:4.10.0-0.nightly-2021-11-28-164900 --pullspecs | grep console
  console                                        quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:0940bd131826f818574eb8dc3e04a4d20d7c8ce2e2381ddeb1e3ac6e6b2698c5
  console-operator                               quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:2cd1cb59fa3ddd96d9161598c5472e40d60ce6b724a4747a43b99f6584c126b3

$ oc image info quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:0940bd131826f818574eb8dc3e04a4d20d7c8ce2e2381ddeb1e3ac6e6b2698c5 | grep commit
             io.openshift.build.commit.id=7f2db8d8eb077c07e8d233d73e21e38e773d35a7
             io.openshift.build.commit.url=https://github.com/openshift/console/commit/7f2db8d8eb077c07e8d233d73e21e38e773d35a7

$ git log 7f2db8d8eb077c07e8d233d73e21e38e773d35a7 | grep '#10501'  //empty results

Comment 5 Yadan Pei 2021-12-20 06:39:45 UTC
Created attachment 1846981 [details]
normal user visit Installed Operators page

normal user without any projects visit Operators -> Installed Operators page, now the page can be shown correctly

verified on 4.10.0-0.nightly-2021-12-18-034942

Comment 10 errata-xmlrpc 2022-03-10 16:27:31 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.10.3 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-2022:0056