Bug 1390312 - "Puppet class not found" when trying to override all parameters of a class as a user
Summary: "Puppet class not found" when trying to override all parameters of a class as...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Users & Roles
Version: 6.2.3
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: Unspecified
Assignee: orabin
QA Contact: Ondřej Pražák
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-31 16:33 UTC by Evgeni Golov
Modified: 2021-03-11 14:46 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-21 16:51:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 17441 0 Normal Closed "Puppet class not found" when trying to override all parameters of a class as a user 2020-01-16 15:41:21 UTC

Description Evgeni Golov 2016-10-31 16:33:41 UTC
Description of problem:
When using a user account with limited rights (e.g. only view and edit puppetclasses), the user cannot click the "Override all parameters" button, as it will lead to a 404 error.

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

How reproducible:


Steps to Reproduce:
1. create a user with limited rights
2. grant the user the "view_puppetclasses" and "edit_puppetclasses" permissions
3. open https://sat/puppetclasses as that user, click "Override all parameters" for a class

Actual results:
"Puppet class not found Please try to update your request"

log:
2016-10-28 15:54:49 [app] [I] Started POST "/puppetclasses/9-test/override?enable=true" for 192.168.122.1 at 2016-10-28 15:54:49 +0200
2016-10-28 15:54:49 [app] [I] Processing by PuppetclassesController#override as HTML
2016-10-28 15:54:49 [app] [I]   Parameters: {"authenticity_token"=>"TuAomLSSXoW9R+2caJKH/Ob5pu82ZcFXwBFuDPzV+A8=", "enable"=>"true", "id"=>"9-test"}
2016-10-28 15:54:49 [app] [I]   Rendered common/404.html.erb within layouts/application (0.9ms)
2016-10-28 15:54:49 [app] [I]   Rendered layouts/_application_content.html.erb (0.2ms)
2016-10-28 15:54:49 [app] [I]   Rendered layouts/base.html.erb (0.8ms)
2016-10-28 15:54:49 [app] [I] Completed 404 Not Found in 48ms (Views: 2.9ms | ActiveRecord: 11.6ms)

Expected results:
parameters are overriden now

Additional info:

Comment 2 Bryan Kearney 2016-11-24 15:20:16 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/17441 has been resolved.

Comment 3 Ondřej Pražák 2017-08-16 08:52:30 UTC
Verified.

6.3.0 snap 11

Comment 4 Satellite Program 2018-02-21 16:51:07 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/RHSA-2018:0336


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