Bug 601653

Summary: Suggestion is not properly replaced when a search token has a space in value.
Product: [Other] RHQ Project Reporter: Sunil Kondkar <skondkar>
Component: Core UIAssignee: Charles Crouch <ccrouch>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: high Docs Contact:
Priority: medium    
Version: 3.0.0CC: hbrock, jshaughn
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-29 16:21:47 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On:    
Bug Blocks: 565628    
Description Flags
Screenshot none

Description Sunil Kondkar 2010-06-08 08:19:45 EDT
Description of problem:

When a search expression is entered in searchbar which has a space in value (Ex: type="Apache HTTP Server") and user places cursor in searchbar after the text type="Apache and before the text HTTP Server", it displays suggestions like type="Apache HTTP Server" and type="Apache Virtual Host".

when user selects a suggestion type="Apache Virtual Host", it is not properly replaced. The searchbar displays expression as : type="Apache Virtual Host" HTTP Server".

Please refer the attached screenshot.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:

1. Login to jon.
2. Navigate to 'Resources->All Resources'.
3. Enter in searchbar: type="Apache HTTP Server" and press enter.
4. Place the cursor after the text 'Apache' and before 'http' in search expression.
5. Select the suggestion: type="Apache Virtual Host".
Actual results:
Searchbar shows the expression: type="Apache Virtual Host" HTTP Server".

Expected results:
Searchbar should replace the token and should display:  type="Apache Virtual Host".

Additional info:
Comment 1 Sunil Kondkar 2010-06-08 08:21:09 EDT
Created attachment 422159 [details]
Comment 5 Jay Shaughnessy 2014-05-29 16:21:47 EDT
search bar has had many fixes