Bug 1292174

Summary: Multiple catalogs across tenants with the same name
Product: Red Hat CloudForms Management Engine Reporter: Pavol Kotvan <pakotvan>
Component: UI - OPSAssignee: Milan Zázrivec <mzazrivec>
Status: CLOSED ERRATA QA Contact: Pavol Kotvan <pakotvan>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 5.5.0CC: dclarizi, hkataria, jhardy, jprause, mpovolny, obarenbo
Target Milestone: GA   
Target Release: 5.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: tenant_cfme:ui
Fixed In Version: 5.6.0.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1292472 (view as bug list) Environment:
Last Closed: 2016-06-29 15:22:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1292472    
Attachments:
Description Flags
Same catalog names from three different tenants none

Description Pavol Kotvan 2015-12-16 16:08:48 UTC
Created attachment 1106491 [details]
Same catalog names from three different tenants

Description of problem:
It is possible to create catalog with "catalog" name in every tenant configured in CFME. Then when you login as super administrator of My Company tenant, you will see "catalog" several times and you won't be able to identify which was created under which tenant. This might be confusing for end users.

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

How reproducible:
always

Steps to Reproduce:
1. Create 2 tenants: tenant1, tenant2
2. Create 2 groups: tenant1, tenant2
3. Create 2 users: tenant1, tenant2
4. Login as:
- tenant1
- tenant2
- admin
and create new Catalog named "catalog" in each tenant.
 

Actual results:
As admin user, you will end up with 3 same catalogs. Also Catalog items will show 3 times "catalog"
Catalog with same name can be created only once in each tenant and this is correct. See attached screenshot.

Expected results:
Maybe new column in Catalogs table showing information relationship between Catalogs and tenants?

Additional info:

Comment 2 Milan Zázrivec 2016-01-11 14:31:52 UTC
https://github.com/ManageIQ/manageiq/pull/6126

Comment 3 CFME Bot 2016-01-11 18:01:09 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/d2e252ab1034a159b71674cef571b5ec273403b0

commit d2e252ab1034a159b71674cef571b5ec273403b0
Author:     Milan Zazrivec <mzazrivec>
AuthorDate: Mon Jan 11 15:28:27 2016 +0100
Commit:     Milan Zazrivec <mzazrivec>
CommitDate: Mon Jan 11 15:28:27 2016 +0100

    Display tenant name in catalogs to avoid ambiguity
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1292174

 product/views/ServiceCatalog.yaml  | 5 +++++
 product/views/ServiceTemplate.yaml | 5 +++++
 2 files changed, 10 insertions(+)

Comment 4 Milan Zázrivec 2016-01-21 12:42:43 UTC
https://github.com/ManageIQ/manageiq/pull/6279

Comment 5 CFME Bot 2016-01-21 18:11:05 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/6a0cba7737c26a53cb9f829b6bcbe8096967dd06

commit 6a0cba7737c26a53cb9f829b6bcbe8096967dd06
Author:     Milan Zazrivec <mzazrivec>
AuthorDate: Thu Jan 21 13:41:07 2016 +0100
Commit:     Milan Zazrivec <mzazrivec>
CommitDate: Thu Jan 21 13:41:07 2016 +0100

    Show tenant name in Services -> Catalogs -> Catalogs
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1292174

 product/views/ServiceTemplateCatalog.yaml | 5 +++++
 1 file changed, 5 insertions(+)

Comment 9 errata-xmlrpc 2016-06-29 15:22:04 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-2016:1348