Bug #10735
closedDefining discovery rule with "organization = under search raises 500 ISE in production.log
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1202307
Description of problem:
I was trying to define a discovery rule based on org_name, so I choose organization = from auto search. As soon as I auto selected "organization = ", UI throws following error in firebug:
--
"NetworkError: 500 Internal Server Error - https://dhcp201-163.englab.pnq.redhat.com/discovered_hosts/auto_complete_search?search=+organization++%3D+"
--
production.log raises:
--
2015-03-16 11:18:43 [I] Processing by DiscoveredHostsController#auto_complete_search as JSON
2015-03-16 11:18:43 [I] Parameters: {"search"=>" organization = "}
2015-03-16 11:18:43 [W] Operation FAILED: missing attribute: default_info
2015-03-16 11:18:43 [I] Rendered common/500.html.erb (5.4ms)
2015-03-16 11:18:43 [I] Completed 500 Internal Server Error in 23ms (Views: 6.1ms | ActiveRecord: 1.8ms)
2015-03-16 11:18:53 [I] Processing by DiscoveredHostsController#auto_complete_search as JSON
2015-03-16 11:18:53 [I] Parameters: {"search"=>" organization = "}
2015-03-16 11:18:53 [W] Operation FAILED: missing attribute: default_info
2015-03-16 11:18:53 [I] Rendered common/500.html.erb (5.4ms)
2015-03-16 11:18:53 [I] Completed 500 Internal Server Error in 23ms (Views: 6.1ms | ActiveRecord: 1.9ms)
--
Version-Release number of selected component (if applicable):
sat6.1 beta snap6 compose2 (Satellite-6.1.0-RHEL-6-20150311.1).
How reproducible:
always
Steps to Reproduce:
1. go to configure --> discovery_rule
2. add a new rule and search query for "organization =
3.
Actual results:
--
"NetworkError: 500 Internal Server Error - https://dhcp201-163.englab.pnq.redhat.com/discovered_hosts/auto_complete_search?search=+organization++%3D+"
--
Expected results:
no error
Additional info:
Updated by The Foreman Bot over 9 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/5283 added
- Pull request deleted (
)
Updated by Eric Helms over 9 years ago
- Translation missing: en.field_release set to 31
- Triaged changed from No to Yes
Updated by Anonymous over 9 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello|d73f191e389c0165ee3e0005c934f1aa2fa79aed.