| Summary: | Empty search term gives an error | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Mark Macdonald <mamacdon> |
| Component: | Client | Assignee: | 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: | |||
Not an issue in the integrated global search bar. |
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.