Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1782227 - host search filter throw an error for the filter params.<parameter> on UI
Summary: host search filter throw an error for the filter params.<parameter> on UI
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Search
Version: 6.4.2
Hardware: All
OS: All
unspecified
low
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Omkar Khatavkar
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-12-11 13:17 UTC by Ranjan Kumar
Modified: 2024-10-01 16:25 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-07-09 17:02:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Error Screen (60.59 KB, image/png)
2019-12-11 13:17 UTC, Ranjan Kumar
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 31098 0 Normal New host search filter throw an error for the filter params.<parameter> on UI 2020-11-27 12:20:13 UTC

Description Ranjan Kumar 2019-12-11 13:17:24 UTC
Created attachment 1643871 [details]
Error Screen

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.

Comment 3 Shira Maximov 2020-10-19 12:22:52 UTC
Created redmine issue https://projects.theforeman.org/issues/31098 from this bug

Comment 5 Mike McCune 2021-07-09 17:02:24 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and while we recognize that it is a valid request, we do not expect this to be implemented in the product in the foreseeable future. This is due to other priorities for the product, and not a reflection on the request itself. We are therefore closing this out as WONTFIX. If you have any concerns about this feel free to contact your Red Hat Account Team. Thank you.


Note You need to log in before you can comment on or make changes to this bug.