[xwiki-devs] REST search jira issue XWIKI-5970
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. Thank you
Hi, Can you point where in source code this encoding / decoding happens? Btw, you should've asked this question lot earlier. - Asiri On Sun, May 15, 2011 at 10:14 AM, Chamika Weerasinghe <[email protected]>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.
Thank you _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
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/
Did you do what I suggested and put a breakpoint at the beginning of the REST resource class entry point ?
From here you can at least check if the input seems right and then if you do a step by step until db query is generated for the actually search it should be easy to find where the search pattern is broken.
That's exactly what I would have to do you give you more informations. On Sun, May 15, 2011 at 11:14, Chamika Weerasinghe <[email protected]> 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.
Thank you _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
participants (4)
-
Asiri Rathnayake -
Chamika Weerasinghe -
Sergiu Dumitriu -
Thomas Mortagne