Project

General

Profile

Refactor #18667

Adapt HostCollectionsController to Rails 4.2.8

Added by Daniel Lobato Garcia about 2 years ago. Updated 9 months ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Branch:
Difficulty:
Triaged:
Yes
Bugzilla link:
Team Backlog:
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

Revision 9d4b02b5 (diff)
Added by Daniel Lobato Garcia about 2 years ago

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.

History

#1 Updated by The Foreman Bot about 2 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 about 2 years ago

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

#3 Updated by Eric Helms about 2 years ago

  • Legacy Backlogs Release (now unused) set to 211

Also available in: Atom PDF