Bug 1677243 - Create Template wizard should be disabled if user doesn't have any namespace
Summary: Create Template wizard should be disabled if user doesn't have any namespace
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: User Experience
Version: 1.4
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 2.0
Assignee: Phillip Bailey
QA Contact: Guohua Ouyang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-02-14 10:59 UTC by Radim Hrazdil
Modified: 2019-07-24 20:16 UTC (History)
5 users (show)

Fixed In Version: 2.0.0-14.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-07-24 20:15:51 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github kubevirt web-ui pull 225 0 None None None 2019-03-21 12:43:31 UTC
Red Hat Product Errata RHEA-2019:1850 0 None None None 2019-07-24 20:15:59 UTC

Description Radim Hrazdil 2019-02-14 10:59:46 UTC
Description of problem:
When a new non-admin user logs in, the user doesn't own any namespace and doesn't have access to any existing one.
When this user navigates to an resource page (VMs, Pods, etc), there is a link inviting the user to create a new namespace and the rest of the page is disabled (create button, filter, ...).

However, on Templates page the create button (and filter field) is not disabled, so the user can open the Create template wizard, which which should not be possible because the user doesn't have any namespace and therefore it is not possible to proceed in the wizard.

We should find a way how to check if a user has any namespace and if not, disable the template wizard.
Version-Release number of selected component (if applicable):


How reproducible:
100%

Steps to Reproduce:
1. log in as a non-admin user without any project/namespace
2. go to templates
3. open a wizard to create a template

Actual results:
You can't proceed since there is no project/namespace to use

Expected results:
The create template should not be clickable if the user doesn't have any namespace

Additional info:

Comment 1 Guohua Ouyang 2019-03-29 02:23:03 UTC
verified on v2.0.0-3, the expand button works.

Comment 2 Guohua Ouyang 2019-03-29 02:25:30 UTC
(In reply to Guohua Ouyang from comment #1)
> verified on v2.0.0-3, the expand button works.

Sorry, I put a comment here by mistake, please ignore it.

Comment 5 Radim Hrazdil 2019-05-16 11:46:41 UTC
Verified that non admin user has disabled wizard button on VM template page. 
Version 2.0.0-14.3

Comment 7 errata-xmlrpc 2019-07-24 20:15:51 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/RHEA-2019:1850


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