Project

General

Profile

Bug #10735

Defining discovery rule with "organization = under search raises 500 ISE in production.log

Added by Stephen Benjamin over 6 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Category:
Web UI
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:

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:

Associated revisions

Revision d73f191e (diff)
Added by Stephen Benjamin over 6 years ago

fixes #10735 - remove default and custom info

Revision be6c7023
Added by Stephen Benjamin over 6 years ago

Merge pull request #5283 from stbenjam/10735

fixes #10735 - remove default and custom info

History

#1 Updated by The Foreman Bot over 6 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/5283 added
  • Pull request deleted ()

#2 Updated by Eric Helms over 6 years ago

  • Legacy Backlogs Release (now unused) set to 31
  • Triaged changed from No to Yes

#3 Updated by Anonymous over 6 years ago

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

Also available in: Atom PDF