| Summary: | 500 internal server error: SearchPhaseExecutionException | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Ales Dujicek <adujicek> |
| Component: | Content Views | Assignee: | satellite6-bugs <satellite6-bugs> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Jameer Pathan <jpathan> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.0.2 | CC: | bbuckingham, bkearney, cwelton |
| Target Milestone: | Unspecified | Keywords: | Triaged |
| Target Release: | Unused | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-08-04 18:09:40 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: | |
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. |
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