On 05/18/2011 12:54 PM, Thomas Mortagne wrote:
> On Wed, May 18, 2011 at 12:24, Sergiu Dumitriu<[email protected]>  wrote:
>> On 05/18/2011 10:43 AM, Thomas Mortagne wrote:
>>> On Wed, May 18, 2011 at 10:39, Chamika Weerasinghe<[email protected]>    
>>> wrote:
>>>> Hi all,
>>>> Thank you Eduard Moraru for teaching me remote debugging. For now I'll use
>>>> this method.
>>>>
>>>> I'm currently working on XWIKI-5970 jira issue and Thomas told me a java
>>>> class which triggers when we try to search wikis.
>>>> (
>>>> https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-rest/xwiki-platform-rest-server/src/main/java/org/xwiki/rest/resources/wikis/WikiSearchResource.java
>>>> )
>>>>
>>>> But issue is occurring before that java class triggers. For identifying
>>>> which causes the issue I will look for stack/trace of the eclipse and hope
>>>> to find the correct class which converts "+" to " " (white space) in search
>>>> keywords.
>>>
>>> WikiSearchResource directly receive the REST request so you mean the
>>> generated REST request itself is wrong ?
>>
>> Yes.
>
> Then there is no need to debug XWiki at all since it mean the issue is
> in velocity or javascript.

It's probably in the JAX library, or in the way we configure the resources.

One possibility is that the MIME type is the one triggering this double 
decoding. If the request is processed as URL-encoded form data, then 
it's normal to do double decoding. One quick way around it is to do 
double encoding on our end as well.

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

Reply via email to