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 #1

Updated by Dominic Cleal over 9 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/2013 added
  • Pull request deleted ()
Actions #2

Updated by Dominic Cleal about 9 years ago

  • Has duplicate Bug #6403: power API returns error if using a hostgroup_id search filter added
Actions #3

Updated by Dominic Cleal about 9 years ago

  • Pull request https://github.com/theforeman/foreman/pull/2121 added
  • Pull request deleted (https://github.com/theforeman/foreman/pull/2013)
Actions #4

Updated by Dominic Cleal about 9 years ago

  • Has duplicate Bug #9314: power-state change on vms in aws-compute resource cause 500 server error added
Actions #5

Updated by Anonymous about 9 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #6

Updated by Dominic Cleal about 9 years ago

  • translation missing: en.field_release set to 28
Actions

Also available in: Atom PDF