Project

General

Profile

Actions

Bug #4293

closed

Scoped search breaks on some relations

Added by Marek Hulán almost 11 years ago. Updated over 6 years ago.

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

Description

I can't search using taxonomies anywhere except hosts (which have belongs_to instead of has_many relation). This is blocker for #812.

To reproduce, go to e.g. subnets page and try to find subnets from specific organization like this
"organization = RedHat"

you'll receive

NoMethodError in SubnetsController#index

undefined method `klass' for nil:NilClass

app/controllers/subnets_controller.rb:5:in `index'
app/models/concerns/foreman/thread_session.rb:33:in `clear_thread'
lib/middleware/catch_json_parse_errors.rb:9:in `call'

Parameters:

{"utf8"=>"✓",
 "search"=>"organization = RedHat",
 "locale"=>nil}

Related issues 3 (0 open3 closed)

Related to Foreman - Bug #2767: Seach for host.hostgroup in /fact_values raise 500 error Resolved07/10/2013Actions
Related to Foreman - Bug #4563: ruby193-rubygem-scoped_search-2.6.3-1.el6.noarch breaks searching via the api with foreman-1.4.1ClosedAmos Benari03/06/2014Actions
Blocks Foreman - Feature #812: cant assign roles to groups, just to usersClosedMarek Hulán03/31/2011Actions
Actions #1

Updated by Marek Hulán almost 11 years ago

  • Related to Bug #2767: Seach for host.hostgroup in /fact_values raise 500 error added
Actions #2

Updated by Marek Hulán almost 11 years ago

  • Blocks Feature #812: cant assign roles to groups, just to users added
Actions #4

Updated by Marek Hulán almost 11 years ago

  • Status changed from New to Closed
  • Assignee set to Amos Benari
  • Target version set to 1.9.1
  • % Done changed from 0 to 100

Tested new 2.6.2 fixes the issue! Thank you Amos. #2767 still does not work, but that seems as different issue.

Actions #5

Updated by Dominic Cleal almost 11 years ago

RPM of 2.6.2 built and released to nightly.

Actions #6

Updated by Dominic Cleal almost 11 years ago

  • Translation missing: en.field_release changed from 4 to 5
Actions #7

Updated by Anonymous almost 11 years ago

  • Related to Bug #4563: ruby193-rubygem-scoped_search-2.6.3-1.el6.noarch breaks searching via the api with foreman-1.4.1 added
Actions

Also available in: Atom PDF