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.
Created redmine issue http://projects.theforeman.org/issues/14889 from this bug
*** Bug 1321053 has been marked as a duplicate of this bug. ***
Moving to POST since upstream bug http://projects.theforeman.org/issues/14889 has been closed
*** Bug 1370442 has been marked as a duplicate of this bug. ***
Note: the same error can be observed by executing the following via hammer-cli: hammer -u admin -p mypassword host-collection list
*** Bug 1392755 has been marked as a duplicate of this bug. ***
VErified in: satellite-6.3.0-6.1.beta.el7sat.noarch - RHEL7 Conclusion: Works properly. [brocha@localhost ~]$ curl --insecure --user admin:xxxx "-HContent-Type: application/json" "-d{\"per_page\":9999}" -XGET /katello/api/v2/host_collections | python -m json.tool { "error": null, "page": 1, "per_page": 9999, "results": [ { "created_at": "2016-11-10 19:59:39 UTC", "description": null, "id": 1, "max_hosts": null, "name": "foocol", "organization_id": 33, "permissions": { "deletable": true, "editable": true }, "total_hosts": 2, "unlimited_hosts": true, "updated_at": "2016-11-10 19:59:39 UTC" } ], "search": null, "sort": { "by": null, "order": null }, "subtotal": 1, "total": 1 }
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. > > For information on the advisory, and where to find the updated files, follow the link below. > > If the solution does not work for you, open a new bug report. > > https://access.redhat.com/errata/RHSA-2018:0336