[xwiki-notifications] [Issue] Created: (XWIKI-2297) decoding problem with non-English parent param
lidan (JIRA)
jira at xwiki.org
Wed Apr 9 22:54:53 CEST 2008
decoding problem with non-English parent param
----------------------------------------------
Key: XWIKI-2297
URL: http://jira.xwiki.org/jira/browse/XWIKI-2297
Project: XWiki Core
Issue Type: Bug
Components: Core
Affects Versions: 1.3.1, 1.2.1
Environment: xwiki core
Reporter: lidan
When XWiki render a link which point to an uncreated page, a parent param will be appended to the URL. If the parent name is non-English, it will not be encoded, but the main part of the URL is encoded. This cause two different encodings for one URL. The consequence is that when click the link to create the new page, the parent name of the new page was ill-formatd and can not find the correct parent.
I look into the source code, it must be a problem in com.xpn.xwiki.render.XWikiRadeoxRenderEngine.class
See the function "public void appendCreateLink(StringBuffer buffer, String name, String view)"
querystring = "parent=" + currentdoc.getFullName(); in the next codes the encode function is applied to the other part of the URL but not to querystring. This caused 2 encodings in one URL.
This problem appears in IE, but in firefox it's OK. It must be because firefox do some convertion to the URL.
I didn't test other functions, but I think there must be other similiar problems.
I hope all the problems can be fixed
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the notifications
mailing list