Bug 1516229

Summary: Tag: Restricted items can be selected in drop downs while creation/editing, which cause unexpected error
Product: Red Hat CloudForms Management Engine Reporter: Ruslana Babyuk <rbabyuk>
Component: ApplianceAssignee: Libor Pichler <lpichler>
Status: CLOSED CURRENTRELEASE QA Contact: Ruslana Babyuk <rbabyuk>
Severity: high Docs Contact:
Priority: high    
Version: 5.7.0CC: abellott, cpelland, hkataria, jhardy, lavenel, lpichler, mpovolny, obarenbo, rbabyuk
Target Milestone: GAKeywords: TestOnly
Target Release: 5.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: ui:tag
Fixed In Version: 5.10.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1532655 1538350 (view as bug list) Environment:
Last Closed: 2018-06-21 21:17:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1532655, 1538350    
Attachments:
Description Flags
tenant_evm
none
tenant_produstion none

Description Ruslana Babyuk 2017-11-22 10:19:08 UTC
Description of problem:
Restricted items can be selected in drop downs while creation/editing, which cause unexpected error

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

How reproducible:


Steps to Reproduce:
1. Add cloud provider
2. Create group with tag restriction
3. Create user
4. Do not assign any tags to cloud items
5. Navigate to cloud tenant page
6. Open add new tenant page
7. Expand provider drop down

Actual results:
Restricted provider is visible, after filling all fields, error occur

Expected results:
Provider list should be empty

Additional info:
The same issue reproduces for:
Host Aggregates,
Tenant,
Flavour,
Cloud Network,
Subnets

Comment 2 Ruslana Babyuk 2017-11-22 10:30:24 UTC
Created attachment 1357348 [details]
tenant_evm

Comment 3 Ruslana Babyuk 2017-11-22 10:30:54 UTC
Created attachment 1357349 [details]
tenant_produstion

Comment 9 CFME Bot 2018-01-08 17:32:11 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:
https://github.com/ManageIQ/manageiq-ui-classic/commit/1ac6415ffdaaea4f806813650b7571e5e7c0b148

commit 1ac6415ffdaaea4f806813650b7571e5e7c0b148
Author:     lpichler <lpichler>
AuthorDate: Fri Jan 5 18:17:03 2018 +0100
Commit:     lpichler <lpichler>
CommitDate: Fri Jan 5 18:18:31 2018 +0100

    Add RBAC check for cloud managers in new host aggregate
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1516229

 app/controllers/host_aggregate_controller.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)