Bug 1833433 - Show inline alert with proper message in case user din't have RBAC access to any of eventSources
Summary: Show inline alert with proper message in case user din't have RBAC access to ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Dev Console
Version: 4.5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 4.5.0
Assignee: Jaivardhan Kumar
QA Contact: Gajanan More
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-05-08 16:31 UTC by Jaivardhan Kumar
Modified: 2020-07-13 17:36 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-07-13 17:36:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
view (100.52 KB, image/png)
2020-05-21 06:53 UTC, Gajanan More
no flags Details
firefox (103.14 KB, image/png)
2020-05-21 06:55 UTC, Gajanan More
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 5364 0 None closed Bug 1833433: adds Inline alert if user don't have access to create sources 2020-06-24 02:13:43 UTC
Red Hat Product Errata RHBA-2020:2409 0 None None None 2020-07-13 17:36:34 UTC

Description Jaivardhan Kumar 2020-05-08 16:31:12 UTC
Description of problem:
Show inline alert with proper message in case user din't have RBAC access (creation access) to any of the eventSources or if there are no eventSources present(this is useful as with serverless GA KantiveEventing CRD would be present but user needs to create CR as well to see sources)

Prerequisites (if any, like setup, operators/versions):

Install Serverless operator
Create CRs for knativeServing and knativeEventing
Create a user without create access to any of the eventSources
Steps to Reproduce:
1. Login as user created above
2. Go to DevConsole -> Add -> EventSources

Actual results: User will see loading always in EventSources creation screen

Expected results: User should be shown inline alert and with proper message

Reproducibility (Always/Intermittent/Only Once): Always

Comment 3 Gajanan More 2020-05-21 06:53:48 UTC
Created attachment 1690520 [details]
view

Comment 4 Gajanan More 2020-05-21 06:55:56 UTC
Created attachment 1690522 [details]
firefox

Comment 5 Gajanan More 2020-05-21 06:56:52 UTC
I have validated the bugzilla on:
Build: 4.5.0-0.nightly-2020-05-20-235311
Browser: Google Chrome Version 81.0.4044.129
Please have a look at the screenshot shared
Marking this as verified.

Comment 6 errata-xmlrpc 2020-07-13 17:36:23 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.