Bug 839286

Summary: Search term of a single space in SystemGroups/Systems tab throws big UI error
Product: Red Hat Satellite Reporter: Jeff Weiss <jweiss>
Component: WebUIAssignee: Marek Hulan <mhulan>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: dajohnso, mhulan, mmccune
Target Milestone: UnspecifiedKeywords: 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: 2012-12-18 14:36:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jeff Weiss 2012-07-11 13:11:12 UTC
Description of problem:


Version-Release number of selected component (if applicable):
Katello Version: 0.2.44-1.git.81.d1c3a95.el6_3

How reproducible:


Steps to Reproduce:
1. Create a system group, select it in left pane
2. In Systems subtab, type a single space in the "Add" textbox
3.
  
Actual results:
500 : {"error":"SearchPhaseExecutionException[Failed to execute phase [query], total failure; shardFailures {[Kl3xzNx3Qd6xBs1QG5oGiQ][katello_system][0]: SearchParseException[[katello_system][0]: from[-1],size[-1]: Parse Failure [Failed to parse source [{\"filter\":{\"terms\":{\"environment_id\":[1,7,8,25,41,42,43,44,45,46,47,64,65],\"system_group_ids\":[1]}},\"query\":{\"query_string\":{\"query\":\"name_autocomplete: \"}}}]]]; nested: QueryParsingException[[katello_system] Failed to parse query [name_autocomplete: ]]; nested: ParseException[Cannot parse 'name_autocomplete: ': Encountered \"\" at line 1, column 19.\nWas expecting one of:\n \"(\" ...\n \"*\" ...\n ...\n ...\n ...\n ...\n \"[\" ...\n \"{\" ...\n ...\n ]; nested: ParseException[Encountered \"\" at line 1, column 19.\nWas expecting one of:\n \"(\" ...\n \"*\" ...\n ...\n ...\n ...\n ...\n \"[\" ...\n \"{\" ...\n ...\n ]; }{[Kl3xzNx3Qd6xBs1QG5oGiQ][katello_system][1]: SearchParseException[[katello_system][1]: from[-1],size[-1]: Parse Failure [Failed to parse source [{\"filter\":{\"terms\":{\"environment_id\":[1,7,8,25,41,42,43,44,45,46,47,64,65],\"system_group_ids\":[1]}},\"query\":{\"query_string\":{\"query\":\"name_autocomplete: \"}}}]]]; nested: QueryParsingException[[katello_system] Failed to parse query [name_autocomplete: ]]; nested: ParseException[Cannot parse 'name_autocomplete: ': Encountered \"\" at line 1, column 19.\nWas expecting one of:\n \"(\" ...\n \"*\" ...\n ...\n ...\n ...\n ...\n \"[\" ...\n \"{\" ...\n ...\n ]; nested: ParseException[Encountered \"\" at line 1, column 19.\nWas expecting one of:\n \"(\" ...\n \"*\" ...\n ...\n ...\n ...\n ...\n \"[\" ...\n \"{\" ...\n ...\n ]; }{[Kl3xzNx3Qd6xBs1QG5oGiQ][katello_system][2]: SearchParseException[[katello_system][2]: from[-1],size[-1]: Parse Failure [Failed to parse source [{\"filter\":{\"terms\":{\"environment_id\":[1,7,8,25,41,42,43,44,45,46,47,64,65],\"system_group_ids\":[1]}},\"query\":{\"query_string\":{\"query\":\"name_autocomplete: \"}}}]]]; nested: QueryParsingException[[katello_system] Failed to parse query [name_autocomplete: ]]; nested: ParseException[Cannot parse 'name_autocomplete: ': Encountered \"\" at line 1, column 19.\nWas expecting one of:\n \"(\" ...\n \"*\" ...\n ...\n ...\n ...\n ...\n \"[\" ...\n \"{\" ...\n ...\n ]; nested: ParseException[Encountered \"\" at line 1, column 19.\nWas expecting one of:\n \"(\" ...\n \"*\" ...\n ...\n ...\n ...\n ...\n \"[\" ...\n \"{\" ...\n ...\n ]; }]","status":500}

Expected results:
no matches

Additional info:
My 18 month old daughter found this by mashing the space bar.  Her first bug report.  /me proud

Comment 1 Marek Hulan 2012-12-18 14:36:44 UTC

*** This bug has been marked as a duplicate of bug 864362 ***