Bug #8812
closed
Pass model type in API base controller
Added by Daniel Lobato Garcia about 10 years ago.
Updated over 6 years ago.
Description
At least on version 1.6.1, the absence of this second parameter leads to a
runtime crash when it's time to validate if the current user (non-admin) is
allowed to perform a power operation on given a host via the APIv2.
The root cause of the crash is basically that search_for is called on
Host::Base by app/services/authorizer.rb:50.
Not sure this is necessary in newer versions, up to the developers to figure
it out :)
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/2013 added
- Pull request deleted (
)
- Has duplicate Bug #6403: power API returns error if using a hostgroup_id search filter added
- Pull request https://github.com/theforeman/foreman/pull/2121 added
- Pull request deleted (
https://github.com/theforeman/foreman/pull/2013)
- Has duplicate Bug #9314: power-state change on vms in aws-compute resource cause 500 server error added
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
- Translation missing: en.field_release set to 28
Also available in: Atom
PDF