Project

General

Profile

Actions

Bug #31098

open

host search filter throw an error for the filter params.<parameter> on UI

Added by Shira Maximov over 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Search
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1782227

Description of problem:
Searching for a host in an organization using filter params.parameter raises an error. The parameter is defined in a hostgroup of different organization
filters throw and error(external method 'search_by_params' failed with error: undefined method `subtree_ids' for nil:NilClass)

Version-Release number of selected component (if applicable): 6.4 Onward

How reproducible: Always

Steps to Reproduce:

1. Create a hostgroup called hg, assign organization org1 and create a parameter Myparameter = test

2. Switch to an organization org2

3. Go to all Hosts and search for params.Myparameter = test using autocomplete
Error: external method 'search_by_params' failed with error: undefined method `subtree_ids' for nil:NilClass

Actual results: Error: external method 'search_by_params' failed with error: undefined method `subtree_ids' for nil:NilClass

Expected results: Should not throw an error

Additional info: Parameter from org1 hostgroup should not be visible in org2 search filter.

No data to display

Actions

Also available in: Atom PDF