Refactor #18667
Adapt HostCollectionsController to Rails 4.2.8
Pull request:
Fixed in Releases:
Found in Releases:
Description
The controller knowingly tried to assign `@host_collection.host_ids = [array with 2 equal ids]`. In Rails 4.2.8 this throws an exception, as if you try to assign multiple IDs but there's only 1 object that matches all of them, ActiveRecord will say "found 1 results but looking for 2" and throw an exception.
Associated revisions
History
#1
Updated by The Foreman Bot over 5 years ago
- Status changed from New to Ready For Testing
- Assignee set to Daniel Lobato Garcia
- Pull request https://github.com/Katello/katello/pull/6628 added
#2
Updated by Anonymous over 5 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello|9d4b02b56474465f20fd7e134237614f91144eb4.
#3
Updated by Eric Helms over 5 years ago
- Legacy Backlogs Release (now unused) set to 211
Fixes #18667 - Adapt HostsCollectionsController to Rails 4.2.8
The controller knowingly tried to assign `@host_collection.host_ids =
[array with 2 equal ids]`. In Rails 4.2.8 this throws an exception, as
if you try to assign multiple IDs but there's only 1 object that matches
all of them, ActiveRecord will say "found 1 results but looking for 2"
and throw an exception.