Bug 1202307
| Summary: | Defining discovery rule with "organization = under search raises 500 ISE in production.log | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Sachin Ghai <sghai> |
| Component: | WebUI | Assignee: | Stephen Benjamin <stbenjam> |
| WebUI sub component: | Foreman | QA Contact: | Sachin Ghai <sghai> |
| Status: | CLOSED CURRENTRELEASE | Docs Contact: | |
| Severity: | low | ||
| Priority: | unspecified | CC: | bkearney, lzap, mmccune |
| Version: | 6.1.0 | Keywords: | Triaged |
| Target Milestone: | Unspecified | ||
| Target Release: | Unused | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| URL: | http://projects.theforeman.org/issues/10735 | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-08-12 16:04:51 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1193977 | ||
| Attachments: | |||
|
Description
Sachin Ghai
2015-03-16 11:23:25 UTC
We might have a dupe, we've already have a similar one: http://projects.theforeman.org/issues/9088 Hmm maybe not related. Anyway, valid bug. Lowering priority as this does not block the user from entering whatever is expected. I think anything related to 500 ISE should be on higher priority. This error looks ugly in all aspects. We really need to get this fixed by beta only. Setting the blocker flag to get into beta. I don't agree. When you see 500 in the UI that's totally blocker, but in this case we only see 500 only in the production.log. Satellite 6 operates well. For this reason I gave it lower prio. Reported issue is still reproducible with:
sat6.1 GA snap1 compose 2 (Satellite-6.1.0-RHEL-7-20150424.0)
--
2015-04-28 07:29:59 [I] Parameters: {"search"=>"organization ="}
2015-04-28 07:29:59 [W] Operation FAILED: missing attribute: default_info
2015-04-28 07:29:59 [I] Rendered common/500.html.erb (128.5ms)
2015-04-28 07:29:59 [I] Completed 500 Internal Server Error in 162ms (Views: 150.1ms | ActiveRecord: 2.0ms)
---
Please see the attached screenshot.
Created attachment 1019635 [details]
reproducible with latest compose
The compose is using a version of discovery prior to Bryan's merge. The package needs to be rebuilt with the changes and then tested. Moving to post until there is a new package. Reproducible with GA snap2 (Satellite-6.1.0-RHEL-7-20150429.2)
production.log:
============
2015-05-04 19:11:29 [I] Processing by DiscoveredHostsController#auto_complete_search as JSON
2015-05-04 19:11:29 [I] Parameters: {"search"=>" organization ="}
2015-05-04 19:11:30 [W] Operation FAILED: missing attribute: default_info
2015-05-04 19:11:30 [I] Rendered common/500.html.erb (6.2ms)
2015-05-04 19:11:30 [I] Completed 500 Internal Server Error in 204ms (Views: 8.9ms | ActiveRecord: 2.6ms)
Looks like this issue is not just with discovery. I can reproduce this issue with 'Hosts' page.
when you search the hosts by organization = ", same issue appears there.
--
2015-05-05 15:44:46 [I] Processing by HostsController#auto_complete_search as JSON
2015-05-05 15:44:46 [I] Parameters: {"search"=>" organization = "}
2015-05-05 15:44:46 [W] Operation FAILED: missing attribute: default_info
2015-05-05 15:44:46 [I] Rendered common/500.html.erb (5.6ms)
2015-05-05 15:44:46 [I] Completed 500 Internal Server Error in 27ms (Views: 6.4ms | ActiveRecord: 2.4ms)
--
please see the screenshot for more info.
Created attachment 1022149 [details]
seraching hosts by organization raises same error on hosts page
Created redmine issue http://projects.theforeman.org/issues/10735 from this bug https://github.com/Katello/katello/pull/5283 merged katello|d73f191e389c0165ee3e0005c934f1aa2fa79aed Verified with sat6.1.1 GA snap13.
Reported issue has been fixed. I didn;t see 500 ISE in production.log. Moreover, UI correctly auto completes the org_name while defining discovery rule.
2015-07-20 03:46:44 [I] Parameters: {"search"=>" organization = "}
2015-07-20 03:46:44 [I] Completed 200 OK in 11ms (Views: 0.2ms | ActiveRecord: 1.9ms)
2015-07-20 03:46:45 [I] Connecting to database specified by database.yml
2015-07-20 03:46:48 [I] Processing by DiscoveredHostsController#auto_complete_search as JSON
2015-07-20 03:46:48 [I] Parameters: {"search"=>" organization "}
2015-07-20 03:46:48 [I] Completed 200 OK in 142ms (Views: 0.5ms | ActiveRecord: 2.0ms)
2015-07-20 03:46:49 [I] Processing by DiscoveredHostsController#auto_complete_search as JSON
2015-07-20 03:46:49 [I] Parameters: {"search"=>" organization = Default_Organization"}
2015-07-20 03:46:49 [I] Completed 200 OK in 10ms (Views: 0.2ms | ActiveRecord: 1.6ms)
Please see the screenshot for verification.
Created attachment 1053763 [details]
search auto completes the org name without any error
This bug was fixed in Satellite 6.1.1 which was delivered on 12 August, 2015. |