On 05/15/2011 11:14 AM, Chamika Weerasinghe wrote:
> Hi,
> http://jira.xwiki.org/jira/browse/XWIKI-5970
> I went through the source of the REST search related to this issue and found
> nothing which will cause this error.
>
> Normally white space " " is replaced with plus sign "+" when decoding an URL
> using URLDecoder in Java. But I can't find any usages of this. Please
> suggest me some idea which causes this issue.

You should try to debug a running instance, to see exactly how a request 
is processed.

Read http://dev.xwiki.org/xwiki/bin/view/Community/DebugXEWithEclipse to 
set up a proper environment.

Then set a breakpoint somewhere inside a method that is called during 
the REST request.

Then trigger a REST search and wait for Eclipse to stop at the breakpoint.

 From there, you can look at the variables to see if the parameter is 
decoded once or twice, go step by step over the lines to see how the 
request is further processed, or look at the stacktrace to look for an 
earlier place to put a breakpoint in case the bug already occurred earlier.

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to