Bug 1246865 - Cannot import puppet classes non-admin user
Summary: Cannot import puppet classes non-admin user
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Configuration Management
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
urgent
medium
Target Milestone: Unspecified
Assignee: Ondřej Pražák
QA Contact: Roman Plevka
URL:
Whiteboard: centralci
Depends On:
Blocks: 1338516 1350159
TreeView+ depends on / blocked
 
Reported: 2015-07-26 13:14 UTC by Alexander Braverman
Modified: 2019-09-26 16:26 UTC (History)
15 users (show)

Fixed In Version: foreman-1.11.0.83-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1463814 (view as bug list)
Environment:
Last Closed: 2017-08-01 20:01:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 17463 0 None None None 2016-11-23 13:03:40 UTC
Foreman Issue Tracker 19338 0 None None None 2017-07-20 19:41:26 UTC
Foreman Issue Tracker 20418 0 None None None 2017-07-26 11:55:18 UTC

Description Alexander Braverman 2015-07-26 13:14:39 UTC
Description of problem:
When trying to import puppet classes as a unprivileged user, with limited access it will fail.

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

How reproducible:


Steps to Reproduce:
1. Create a Organization and Location outside of the defaults.
2. Create user with limited access associated to the Organization and Location. (Filter 'Puppet class': view_puppetclasses, create_puppetclasses, edit_puppetclasses, destroy_puppetclasses, import_puppetclasses)
3. Create Puppet environment in Capsule
4. Import Classes with hammer: hammer proxy import-classes --id 1

Actual results:
Validation failed: Organization ids Invalid organizations selection, you must select at least one of yours, Location ids Invalid locations selection, you must select at least one of yours, Name has already been taken


Expected results:
classes imported

Additional info:
maybe related to https://bugzilla.redhat.com/show_bug.cgi?id=1236740

Comment 1 Alexander Braverman 2015-08-10 12:32:16 UTC
Same on 6.1.1

Comment 7 Satellite Program 2017-01-30 11:04:03 UTC
Upstream bug assigned to oprazak

Comment 8 Satellite Program 2017-01-30 11:04:09 UTC
Upstream bug assigned to oprazak

Comment 9 Satellite Program 2017-03-14 12:04:35 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/17463 has been resolved.

Comment 11 Satellite Program 2017-07-20 20:04:31 UTC
Upstream bug assigned to bbuckingham

Comment 13 Ondřej Pražák 2017-07-26 11:55:12 UTC
Connecting redmine issue http://projects.theforeman.org/issues/20418 from this bug

Comment 15 Bryan Kearney 2017-08-01 20:01:56 UTC
The fix to this bug will be delivered with release 6.3 of Satellite.


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