You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Gerolf Seitz (JIRA)" <ji...@apache.org> on 2007/11/04 02:44:50 UTC

[jira] Resolved: (WICKET-1015) StringResourceModel does not escape interpolated properties

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

Gerolf Seitz resolved WICKET-1015.
----------------------------------

    Resolution: Fixed

> StringResourceModel does not escape interpolated properties
> -----------------------------------------------------------
>
>                 Key: WICKET-1015
>                 URL: https://issues.apache.org/jira/browse/WICKET-1015
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.2.6
>            Reporter: Ryan Crumley
>            Assignee: Gerolf Seitz
>             Fix For: 1.3.0-rc1
>
>
> StringResourceModel does not escape single quotes from interpolated strings which causes unexpected behavior when using with message formatters.
> Consider the following string:
> mystring=This string contained ${property} and message formatter placeholders {0}.
> new StringResourceModel("mystring", component, model, new Object[] {"some string"});
> ${property} = _resolved'property_
> The following string is passed to MessageFormat: This string contained _resolved'property_ and message formatter placeholders {0}.
> This will cause MessageFormat to not replace {0} with the first parameter because it is waiting for another single quote to end the escaping.

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