Bug #17441
closed"Puppet class not found" when trying to override all parameters of a class as a user
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1390312
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: