Project

General

Profile

Actions

Bug #8812

closed

Pass model type in API base controller

Added by Daniel Lobato Garcia over 9 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
API
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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 :)


Related issues 2 (0 open2 closed)

Has duplicate Foreman - Bug #6403: power API returns error if using a hostgroup_id search filterDuplicate06/26/2014Actions
Has duplicate Foreman - Bug #9314: power-state change on vms in aws-compute resource cause 500 server errorDuplicate02/10/2015Actions
Actions

Also available in: Atom PDF