Project

General

Profile

Bug #12891

search_by_params for host returns all hosts

Added by Ori Rabin almost 4 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Search
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

In search_by_params:

 p = Parameter.all(opts)

returns: ArgumentError: wrong number of arguments (1 for 0)
making the search fail.
As a result all hosts are returned.


Related issues

Related to Foreman - Feature #7230: Upgrade Ruby on Rails to 4.1Closed2014-08-22

Associated revisions

Revision f1a6dee3 (diff)
Added by Ori Rabin almost 4 years ago

Fixes #12891 - search_by_params and search_by_user for host return correct results

History

#1 Updated by Ori Rabin almost 4 years ago

#2 Updated by Ori Rabin almost 4 years ago

This also happens in search_by_user

#3 Updated by The Foreman Bot almost 4 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/2993 added

#4 Updated by Ori Rabin almost 4 years ago

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

#5 Updated by Dominic Cleal almost 4 years ago

  • Category set to Search
  • Legacy Backlogs Release (now unused) set to 71

I think this is a Rails 4 specific regression, please correct me if not so we can assign it to an appropriate release.

Also available in: Atom PDF