Project

General

Profile

Actions

Bug #14889

closed

undefined method `id' for nil:NilClass in katello/api/v2/host_collections

Added by Andrew Kofink over 8 years ago. Updated about 6 years ago.

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

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1331875
Description of problem: When requesting katello/api/v2/host_collections with no parameters, "id" is called on nil.

Version-Release number of selected component (if applicable): 1.12-develop

How reproducible: Always

Steps to Reproduce:
1. Visit http://localhost:3000/katello/api/v2/host_collections

Actual results:
undefined method `id' for nil:NilClass

Expected results:
JSON result of all host_collection objects across all organizations

Additional info:
This is not a bug in Satellite 6.1 or 6.2.

Actions #1

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/6006 added
Actions #2

Updated by Anonymous over 8 years ago

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

Updated by Brian Shaw over 8 years ago

I had been having this same problem.

This morning, I made the changes in app/controllers/katello/api/v2/host_collections_controller.rb and then restarted foreman-proxy and httpd. Although, in my version of the file, the changes started on line 44 rather than 54.

Now it works just fine.

Thank you.

Actions #4

Updated by Eric Helms over 8 years ago

  • Translation missing: en.field_release set to 86
Actions

Also available in: Atom PDF