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

Bug 419236

Summary: Searching HTML5 filesystem doesn't show the "No results" message
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: ClientAssignee: libing wang <libingw>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: libingw, mamacdon
Version: 3.0Flags: mamacdon: review+
Target Milestone: 4.0 RC2   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
patch file none

Description Mark Macdonald CLA 2013-10-11 11:12:50 EDT
1. Install HTML5 local file system, and open a file on it.
2. Press Ctrl+Shift+F to bring up Find Files dialog
3. Search for a filename that has 0 hits
4. The dialog shows nothing. I expected to see a "No results found" message.

I don't know if this is a general problem with crawling alternative filesystems, or specific to the HTML5Local FS. I tried it with another Orion server's filesystem but it tried to use the Solr search, which blew up:


> GET https://orion.eclipse.org/filesearch?sort=NameLower%20asc&rows=100&start=0&q=NameLower:b*+Location:https://orion.eclipse.org/file* 500 (org.apache.solr.client.solrj.SolrServerException: org.apache.solr.common.SolrException: org.apache.lucene.queryParser.ParseException: Cannot parse 'Location:https://orion.eclipse.org/file*': Encountered " ":" ": "" at line 1, column 14. Was expecting one of:     <EOF>      <AND> ...     <OR> ...     <NOT> ...     "+" ...     "-" ...     "(" ...     "*" ...     "^" ...     <QUOTED> ...     <TERM> ...     <FUZZY_SLOP> ...     <PREFIXTERM> ...     <WILDTERM> ...     "[" ...     "{" ...     <NUMBER> ...) 

Probably because it wasn't expecting a fully qualified URL in the 'Location:' field. Argh
Comment 1 libing wang CLA 2013-10-11 16:45:10 EDT
Created attachment 236419 [details]
patch file
Comment 2 libing wang CLA 2013-10-11 16:46:35 EDT
I fixed the showing no result issue but for the Orion server's file sys issue I will open a new one.
Comment 4 Mark Macdonald CLA 2013-10-11 17:22:35 EDT
BTW I found another bug -- bug 419289 while verifying the fix