![]() |
|
|
|
|
Change By:
|
TLN
(26/Nov/14 6:02 PM)
|
|
Description:
|
Hello there,
I'm not sure this bug is caused by Blossom, but some investigation with the Java debugger indicated that this is the best first guess. If I'm wrong, then sorry, please forward it.
In order to reproduce, please add this class to any Blossom project:
{code} @Controller @Template(id=DummyTemplate.TEMPLATE_ID, title="Dummy Page") @RequestMapping(value="/dummypage") public class DummyTemplate { public static final String TEMPLATE_ID="rr:pages/dummypage"; @RequestMapping(method=RequestMethod.GET) public @ResponseBody String handleRequest(HttpServletRequest request, @RequestParam(value="dummyparam") String dummyParam) { return "dummy param value: '"+dummyParam+"'"; } } {code}
Now create a website called /dummy.html having this template and open /dummy.html?dummyparam=xyz in your browser. It prints this: dummy param value: 'xyz' This is correct.
Now, please create rewrite rule like this: class: info.magnolia.cms.beans.config.RegexpVirtualURIMapping fromURI: /dummy2((\
\
?.*)?)$ toURI: forward:/dummy.html$1
Then open /dummy2?dummyparam=xyz in your browser. It should also print: dummy param value: 'xyz' However it prints this: dummy param value: 'xyz,xyz' Which is the bug.
Thanks for looking into it. :)
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <
[email protected]>
----------------------------------------------------------------