Bug #12140
closedscoped_search - err 500 on searching on invalid field
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1270855
Description of problem:
Applies to all katello entities:
on sending a query which uses a non-existing field, server returns error 500, but the GUI does not handle this error.
This results in 'dead' search form.
Response:
displayMessage:"Field 'foo' not recognized for searching!"
errors:Array:
0:"Field 'foo' not recognized for searching!"
Version-Release number of selected component (if applicable):
katello-2.4.0-6.nightly.el7.noarch
tfm-rubygem-scoped_search-3.2.2-2.el7.noarch
How reproducible:
every time on all katello entities
Steps to Reproduce:
1. go to a katello entity page (e.g. Content Views)
2. input the seaerch query with invalid field name - e.g. foo = bar
3. Hit search
4. No response on GUI (Error in the captured repsonse headers)
Actual results:
the error is not being handled by UI, renders the form unusable.
Expected results:
Notification is shown or some default behavior takes place.
Additional info:
Updated by Eric Helms over 9 years ago
- Assignee set to John Mitsch
- Translation missing: en.field_release set to 70
- Triaged changed from No to Yes
Updated by John Mitsch over 9 years ago
- Translation missing: en.field_release changed from 70 to 86
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/5691 added
Updated by John Mitsch over 9 years ago
- Status changed from Ready For Testing to New
- Pull request deleted (
https://github.com/Katello/katello/pull/5691)
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/5819 added
Updated by The Foreman Bot over 9 years ago
- Pull request https://github.com/Katello/bastion/pull/97 added
Updated by John Mitsch about 9 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100