You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martijn Dashorst (JIRA)" <ji...@apache.org> on 2008/06/22 15:17:47 UTC

[jira] Updated: (WICKET-1413) RequestUtils.toAbsolutePath() has a bug regarding to UTF-8 encoded page parameter.

     [ https://issues.apache.org/jira/browse/WICKET-1413?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martijn Dashorst updated WICKET-1413:
-------------------------------------

    Fix Version/s:     (was: 1.3.4)
                   1.3.5

> RequestUtils.toAbsolutePath() has a bug regarding to UTF-8 encoded page parameter.
> ----------------------------------------------------------------------------------
>
>                 Key: WICKET-1413
>                 URL: https://issues.apache.org/jira/browse/WICKET-1413
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.0-final
>         Environment: Wicket 1.3.0 (maybe 1.3.1 too)
>            Reporter: smallufo
>            Assignee: Johan Compagner
>             Fix For: 1.3.5
>
>
> It seems RequestUtils.toAbsolutePath() has a bug regarding to UTF-8 encoded page parameter :
> I have a bookmarkable page  , which takes a UTF-8 encoded parameter "place" :
> private PageParameters pps;
> pps.put("place", URLEncoder.encode(place , "UTF-8"));
> In this Page , I have a TextField that prints the URL for this page (for users to copy) :
> String url = RequestUtils.toAbsolutePath("");
>     TextField resultUrl;
>     resultUrl = new TextField("resultUrl");
>     resultUrl.setModel(new Model( url ));
>     resultUrl.setEscapeModelStrings(false);
>     resultUrl.setOutputMarkupId(true);
>     add(resultUrl);
> For example , "台北市" (Chinese word : "Taipei" ) is encoded correctly to :
> place/%25E5%258F%25B0%25E5%258C%2597%25E5%25B8%2582
> And it is correctly shown in the browser URL bar.
> But it is incorrectly shown in the textfield :
> place/%E5%8F%B0%E5%8C%97%E5%B8%82

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.