Bug 1329992

Summary: Filter "Puppet class" doesn't have Organization and Location
Product: Red Hat Satellite Reporter: Alexander Braverman <abraverm>
Component: Organizations and LocationsAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: high    
Version: 6.2.0CC: bkearney, inecas, mhulan, oprazak, orabin
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: centralci
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-04 17:42:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1338516    

Description Alexander Braverman 2016-04-25 08:55:08 UTC
Description of problem:

Lets say there are two organizations A and B. Organization A has Puppet environment A_puppet_env. The Puppet environment A_puppet_env was changed on Satellite (puppet modules were added), but Satellite database wasn't updated (the puppet modules were not imported). Organization B has a user B_user, that is not in organization A. The B_user has permissions to import puppet classes and environments for *organization B*. When the B_user will go to Puppet classes page (https://satellite.com/puppetclasses) and will click on "import from satellite.com" he will see the Puppet environment A_puppet_env. If the B_user will select the A_puppet_env and click "update" he will get: "Validation failed: Name has already been taken".

1. The user shouldn't see the A_puppet_env
2. The user should see only Puppet environments associated in Satellite

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

How reproducible:
Always

Steps to Reproduce:
1. Create two organizations A and B
2. Create Content view in organization A with puppet modules, and publish
3. Create user B_user (non admin) with permissions to import puppet classes and environment in organization B
4. login as B_user, got to Puppet classes page
5. click "import from satellite.com"
6. select puppet organization A puppet environment
7. click update

Actual results:
"Validation failed: Name has already been taken"

Expected results:
User doesn't see organization A environments

Additional info:

Comment 1 Ivan Necas 2016-04-26 19:56:34 UTC
The taxonomies as written today don't provide a good way for namespacing the resources, as a resource can belong to multiple orgnaizations/locations. Flagging to sat-future and cloning to upstream to get into the right tracker

Comment 2 Ivan Necas 2016-04-26 19:57:30 UTC
Created redmine issue http://projects.theforeman.org/issues/14835 from this bug

Comment 4 Bryan Kearney 2016-04-27 19:21:15 UTC
Upstream bug component is Security

Comment 5 Bryan Kearney 2016-04-28 08:16:55 UTC
Upstream bug component is Organizations and Locations

Comment 9 Bryan Kearney 2017-09-14 17:54:38 UTC
This was triaged to upstream on https://bugzilla.redhat.com/show_bug.cgi?id=1329992#c1

Comment 10 Bryan Kearney 2018-09-04 17:42:48 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in the product in the foreseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you.