Bug #14889
closedundefined method `id' for nil:NilClass in katello/api/v2/host_collections
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.
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
Updated by Anonymous over 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello|5d88cd277b79d151da6c7c11aeb7cbafe5334551.
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.
Updated by Eric Helms over 8 years ago
- Translation missing: en.field_release set to 86