[
https://issues.apache.org/jira/browse/WICKET-1015?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gerolf Seitz reassigned WICKET-1015:
------------------------------------
Assignee: Gerolf Seitz
> 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.