Bug 1505712 - Should disable the create button for the viewer user when ordering template
Summary: Should disable the create button for the viewer user when ordering template
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 3.7.0
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: ---
: 3.7.0
Assignee: Samuel Padgett
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-24 07:19 UTC by shahan
Modified: 2017-11-28 08:28 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-10-31 12:58:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2017:3188 0 normal SHIPPED_LIVE Moderate: Red Hat OpenShift Container Platform 3.7 security, bug, and enhancement update 2017-11-29 02:34:54 UTC

Description shahan 2017-10-24 07:19:48 UTC
Description of problem:
Should disable the create button for the viewer user when ordering template

 
Version-Release number of selected component (if applicable):
   v3.7.0-0.176.0

How reproducible:
   Always

Steps to Reproduce:
1. Use user1 create project named pro1.
2. oc policy add-role-to-user view user2 -n pro1 
3. Login web console with user2 and click one template, such as MySQL (Persistent).
4. select project pro1 in the opened panel,then click create button.

Actual results:
 Will prompt the error: An error occurred processing the template.

Expected results:
 The create button should disable like when ordering images.

Additional info:

Comment 1 Samuel Padgett 2017-10-24 12:08:27 UTC
This only happens when a project is preselected. The onSelectProjectChange method is called before the form is initialized in the view, so the `$setValidity` call never happens.

Comment 5 shahan 2017-10-31 05:02:24 UTC
Checked this issue on OCP v3.7.0-0.184.0, the create button disabled when viewer ordering templates. Changed status to verified.


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