Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 418222

Summary: Empty search term gives an error
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: ClientAssignee: Project Inbox <orion.client-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: libingw
Version: 3.0   
Target Milestone: 7.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Mark Macdonald CLA 2013-09-27 15:34:34 EDT
1. Running on HEAD as of now (or orion.eclipse.org)
2. Go to search page
3. Leave Search field empty, click "Search"
4. You get a popout "Error. Try your search again".

The response returned by the server is
> GET http://localhost:8080/filesearch?sort=Path%20asc&rows=40&start=0&q=+Location:/file* 500
> (org.apache.solr.client.solrj.SolrServerException: org.apache.solr.common.SolrException: org.apache.lucene.queryParser.ParseException: Cannot parse '': Encountered "<EOF>" at line 1, column 0.  Was expecting one of:      <NOT> ...      "+" ...      "-" ...      "(" ...      "*" ...      <QUOTED> ...      <TERM> ...      <PREFIXTERM> ...      <WILDTERM> ...      "[" ...      "{" ...      <NUMBER> ...      <TERM> ...      "*" ...) 

The user experience is a bit unfriendly here. If searching for nothing is invalid, then we should disable the button or give a better message.
Comment 1 John Arthorne CLA 2015-01-07 15:31:07 EST
Not an issue in the integrated global search bar.