Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 390732 - global search: search does not work on self-hosting
Summary: global search: search does not work on self-hosting
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Server (show other bugs)
Version: 0.5   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 1.0 RC1   Edit
Assignee: Mark Macdonald CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-28 16:55 EDT by libing wang CLA
Modified: 2012-10-03 13:59 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description libing wang CLA 2012-09-28 16:55:54 EDT
In my self hosting, neither file name nor keyword search is working.
If I remove the +Location part, it works.
Comment 1 John Arthorne CLA 2012-09-28 17:00:21 EDT
Normally request is: q=foo+Location:/file/*
When self hosting it turns into: q=foo%20Location:/file/*

When I added support for whitespace in the Location field, I now care about the distinction between + and %20. This is getting munged in HostedSiteServlet.  HostedSiteServlet#getQueryString uses URLDecoder, which is not exactly the same as the encoding used in java.net.URI, so the decode/encode is not symmetric.
Comment 2 John Arthorne CLA 2012-09-28 17:01:05 EDT
I might be able to take this next week, but Mark if you beat me to it, I won't cry.