Bug 1292494 - Deletion of tenant is allowed when group exists with such tenant assigned
Summary: Deletion of tenant is allowed when group exists with such tenant assigned
Keywords:
Status: CLOSED DUPLICATE of bug 1292469
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: 5.5.0
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: GA
: 5.5.2
Assignee: Milan Zázrivec
QA Contact: Dave Johnson
URL:
Whiteboard:
Depends On: 1292157
Blocks: 1292469
TreeView+ depends on / blocked
 
Reported: 2015-12-17 15:17 UTC by John Prause
Modified: 2016-01-06 15:22 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 1292157
Environment:
Last Closed: 2016-01-06 15:22:41 UTC
Category: Bug
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description John Prause 2015-12-17 15:17:04 UTC
+++ This bug was initially created as a clone of Bug #1292157 +++

Description of problem:
Deletion of tenant is allowed when there is group with this tenant assigned. This will cause that group will loose tenant membership. This is e.g. breaking Automate-Explorer.

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

How reproducible:
always

Steps to Reproduce:
1. Create tenant1
2. Create new group called tenant1, assign super administrator role to it and tenant1 tenant
3. Create new user tenant1 and assign him into tenant1 group
4. Login as tenant1 
5. navigate to Automate -> Explorer

Actual results:
You will see this message on the screen:
We're sorry, but something went wrong.
We've been notified about this issue and we'll take a look at it shortly.

When you navigate to tenant1 group, there is no tenant assigned to this group, which is mandatory when creating new group.

In order to fix this, login as super administrator of My Company tenant and assign tenant to tenant1 group.

Also noticed that user which is not member of any tenant can login into CFME.

Expected results:
Tenant/child tenant/project cannot be deleted if there is group which is relying on this tenant/project.
This check should be implemented also for all child tenants.
Similar check is done when you try delete group which has members in it.

Additional info:

Comment 2 John Prause 2016-01-06 15:22:41 UTC

*** This bug has been marked as a duplicate of bug 1292469 ***


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