Bug 2139687 - catalog shows template list for non-priv users
Summary: catalog shows template list for non-priv users
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: User Experience
Version: 4.12.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 4.12.0
Assignee: Aviv Turgeman
QA Contact: Guohua Ouyang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-11-03 09:13 UTC by Aviv Turgeman
Modified: 2023-01-24 13:42 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-01-24 13:41:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
catalog-crash (240.95 KB, video/mp4)
2022-11-03 09:13 UTC, Aviv Turgeman
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github kubevirt-ui kubevirt-plugin pull 947 0 None Merged Bug 2139687: catalog shows template list for non-priv users 2022-11-09 14:57:57 UTC
Github kubevirt-ui kubevirt-plugin pull 956 0 None Merged Bug 2139687: catalog shows template list for non-priv users 2022-11-09 14:58:00 UTC
Red Hat Issue Tracker CNV-22212 0 None None None 2022-11-03 09:25:52 UTC
Red Hat Product Errata RHSA-2023:0408 0 None None None 2023-01-24 13:42:00 UTC

Description Aviv Turgeman 2022-11-03 09:13:57 UTC
Created attachment 1921910 [details]
catalog-crash

Description of problem:
The catalog shows the template list for users who do not have enough permissions to process a template under 'all-namespaces' or a specific namespace which is not allowed for example openshift-virtualization-os-images namespaces

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


How reproducible:
100%

Steps to Reproduce:
1. navigate to Virtualization -> catalog and select openshift-virtualization-os-images namespce
2. pick any template the drawer will appear and the footer will have only Customize VirtualMachine and Cancel buttons, click Customize will lead to a crash
3.

Actual results:
Template list is shown and clickable

Expected results:
an Error should appear to say this namespace is not eligible for processing the template


Additional info:

Comment 1 Guohua Ouyang 2022-11-07 10:11:58 UTC
If the user has view permission to this project, the user should still see all templates in this project but not able to procedure.
And refer to https://bugzilla.redhat.com/show_bug.cgi?id=2140539#c2, the error should come from the back-end, not UI implemented error.

Comment 2 Leon Kladnitsky 2022-11-10 16:42:57 UTC
Verified on v4.12.0-158

Comment 3 Leon Kladnitsky 2022-11-10 16:45:28 UTC
(In reply to Leon Kladnitsky from comment #2)

Verified on v4.12.0-160, mistake

Comment 8 errata-xmlrpc 2023-01-24 13:41:50 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 (Important: OpenShift Virtualization 4.12.0 Images 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-2023:0408


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