Bug #15236
closedNo permissions for power, puppetrun e.t.c in API
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1341149
Description of problem:
Host's special actions will fail with "Unknown permission" exception
Example:
[root@xyz ~]# curl --insecure -X PUT -d '{"power_action": "state"}' -u admin:changeme -H "Content-Type:application/json" -H "Accept:application/json" https://abc.redhat.com/api/v2/hosts/abc1.redhat.com/power
{
"error": {"message":"ERF42-5531 [Foreman::Exception]: unknown permission for api/v2/hosts#power"}
}
Additional info:
Katello is redefining #action_permission method in katello/app/controllers/katello/concerns/api/v2/hosts_controller_extensions.rb which means that the original host's method is not called.
In foreman this method defines a lot of special actions.
Updated by The Foreman Bot over 8 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/6087 added
Updated by Shimon Shtein over 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello|5d55334096bbf82c7dcb2e7aa4ae098122c24c50.
Updated by Eric Helms over 8 years ago
- Translation missing: en.field_release set to 143