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

Bug 366098

Summary: [sites] Can't search in self hosted site
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: ServerAssignee: Mark Macdonald <mamacdon>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: john.arthorne, susan
Version: 0.3   
Target Milestone: 0.4 M1   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Mark Macdonald CLA 2011-12-08 14:50:07 EST
12/08 HEAD
1. Create a self-hosting site and log in to it
2. Type a query in the search box, press enter
3. You never see any search results. An error 500 is thrown by the server.

The URL the search tries to get is:
> /filesearch?sort=Path%20asc&rows=40&start=0&q=var
                       ^^^
 
In the server log, I see an exception like this being thrown:

> java.io.IOException: 
> Server returned HTTP response code: 500 for URL: http://localhost:8080/filesearch?sort=Path%2520asc&rows=40&start=0&q=var
                                                                                             ^^^^^
It seems to have turned %20 into %2520 by URL encoding the "%".