Bug 1031071 - 500 internal server error: SearchPhaseExecutionException
500 internal server error: SearchPhaseExecutionException
Status: CLOSED CURRENTRELEASE
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Content Views (Show other bugs)
6.0.2
Unspecified Unspecified
unspecified Severity medium (vote)
: Unspecified
: --
Assigned To: satellite6-bugs
Katello QA List
: Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-15 09:48 EST by Ales Dujicek
Modified: 2016-08-04 14:09 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-08-04 14:09:40 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Ales Dujicek 2013-11-15 09:48:21 EST
Description of problem:

When creating content filter package rule and filling special characters like "]
[]^" as package name I get this error message:

500 : {"error":"SearchPhaseExecutionException[Failed to execute phase [query], total failure; shardFailures {[ceSAwOV3TrKqK871cpmNjw][katello_package][2]: SearchParseException[[katello_package][2]: from[-1],size[-1]: Parse Failure [Failed to parse source [{\"query\":{\"query_string\":{\"query\":\"name_autocomplete:([*)\"}},\"filter\":{\"terms\":{\"repoids\":[\"500org-prod-repo\"]}},\"fields\":[\"name\"]}]]]; nested: QueryParsingException[[katello_package] Failed to parse query [name_autocomplete:([*)]]; nested: ParseException[Cannot parse 'name_autocomplete:([*)': Encountered \"<EOF>\" at line 1, column 22.\nWas expecting one of:\n    \"TO\" ...\n    <RANGEIN_QUOTED> ...\n    <RANGEIN_GOOP> ...\n    ]; nested: ParseException[Encountered \"<EOF>\" at line 1, column 22.\nWas expecting one of:\n    \"TO\" ...\n    <RANGEIN_QUOTED> ...\n    <RANGEIN_GOOP> ...\n    ]; }{[ceSAwOV3TrKqK871cpmNjw][katello_package][1]: SearchParseException[[katello_package][1]: from[-1],size[-1]: Parse Failure [Failed to parse source [{\"query\":{\"query_string\":{\"query\":\"name_autocomplete:([*)\"}},\"filter\":{\"terms\":{\"repoids\":[\"500org-prod-repo\"]}},\"fields\":[\"name\"]}]]]; nested: QueryParsingException[[katello_package] Failed to parse query [name_autocomplete:([*)]]; nested: ParseException[Cannot parse 'name_autocomplete:([*)': Encountered \"<EOF>\" at line 1, column 22.\nWas expecting one of:\n    \"TO\" ...\n    <RANGEIN_QUOTED> ...\n    <RANGEIN_GOOP> ...\n    ]; nested: ParseException[Encountered \"<EOF>\" at line 1, column 22.\nWas expecting one of:\n    \"TO\" ...\n    <RANGEIN_QUOTED> ...\n    <RANGEIN_GOOP> ...\n    ]; }{[ceSAwOV3TrKqK871cpmNjw][katello_package][0]: SearchParseException[[katello_package][0]: from[-1],size[-1]: Parse Failure [Failed to parse source [{\"query\":{\"query_string\":{\"query\":\"name_autocomplete:([*)\"}},\"filter\":{\"terms\":{\"repoids\":[\"500org-prod-repo\"]}},\"fields\":[\"name\"]}]]]; nested: QueryParsingException[[katello_package] Failed to parse query [name_autocomplete:([*)]]; nested: ParseException[Cannot parse 'name_autocomplete:([*)': Encountered \"<EOF>\" at line 1, column 22.\nWas expecting one of:\n    \"TO\" ...\n    <RANGEIN_QUOTED> ...\n    <RANGEIN_GOOP> ...\n    ]; nested: ParseException[Encountered \"<EOF>\" at line 1, column 22.\nWas expecting one of:\n    \"TO\" ...\n    <RANGEIN_QUOTED> ...\n    <RANGEIN_GOOP> ...\n    ]; }]","status":500} (Tire::Search::SearchRequestFailed)


and there are more places with the same error:
- content filter, puppet rule 
- content filter, errata rule
- content search, select repositories in drop down menu, fill something like [](* to repositories input field, hit enter
- and now it is little bit funny: GPG Keys, fill the search input field with "foo[]", click search icon, + New GPG Key, fill something there, hit Save (and you can do the same with Activation keys, Sync Plans, Distributors)


Version-Release number of selected component (if applicable):
ruby193-rubygem-katello-foreman-engine-0.0.12-7.el6sat.noarch
ruby193-rubygem-katello_api-0.0.3-4.el6sat.noarch
katello-qpid-broker-key-pair-1.0-1.noarch
katello-certs-tools-1.4.4-1.el6sat.noarch
katello-common-1.4.6-63.el6sat.noarch
katello-glue-elasticsearch-1.4.6-63.el6sat.noarch
katello-cli-1.4.3-29.el6sat.noarch
katello-all-1.4.6-63.el6sat.noarch
ruby193-rubygem-foreman-katello-engine-0.0.17-7.el6sat.noarch
katello-qpid-client-key-pair-1.0-1.noarch
katello-agent-1.4.4-3.el6sat.noarch
katello-glue-candlepin-1.4.6-63.el6sat.noarch
katello-cli-common-1.4.3-29.el6sat.noarch
katello-1.4.6-63.el6sat.noarch
pulp-katello-plugins-0.2-1.el6sat.noarch
katello-configure-foreman-1.4.7-7.el6sat.noarch
katello-glue-pulp-1.4.6-63.el6sat.noarch
katello-selinux-1.4.4-4.el6sat.noarch
katello-candlepin-cert-key-pair-1.0-1.noarch
katello-foreman-all-1.4.6-63.el6sat.noarch
katello-configure-1.4.7-7.el6sat.noarch
signo-katello-0.0.23-2.el6sat.noarch
Comment 2 Brad Buckingham 2016-08-04 14:09:40 EDT
In Satellite 6.2 GA, elasticsearch was removed and replaced with the ruby scoped_search gem.  That change was to enable searching to be consistent across the UI/CLI.  As a result, this issue no longer exists; therefore, going to close the bugzilla.

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