Bug 2023607 - console returns blank page when normal user without any projects visit Installed Operators page
Summary: console returns blank page when normal user without any projects visit Instal...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.10
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 4.10.0
Assignee: Yadan Pei
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks: 2028286
TreeView+ depends on / blocked
 
Reported: 2021-11-16 07:03 UTC by Yadan Pei
Modified: 2022-03-10 16:27 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-10 16:27:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
normal user visit Installed Operators page (359.36 KB, image/png)
2021-12-20 06:39 UTC, Yadan Pei
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 10501 0 None open Bug 2023607: Fix blank page error for Installed Operators 2021-11-17 21:38:35 UTC
Red Hat Product Errata RHSA-2022:0056 0 None None None 2022-03-10 16:27:59 UTC

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


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