You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (Jira)" <ji...@apache.org> on 2022/06/16 09:04:00 UTC
[jira] [Closed] (WW-1984) [Properties] Quote handling Inconsistencies introduced by getText
[ https://issues.apache.org/jira/browse/WW-1984?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lukasz Lenart closed WW-1984.
-----------------------------
Fix Version/s: (was: 6.1.0)
Resolution: Won't Do
> [Properties] Quote handling Inconsistencies introduced by getText
> -----------------------------------------------------------------
>
> Key: WW-1984
> URL: https://issues.apache.org/jira/browse/WW-1984
> Project: Struts 2
> Issue Type: Bug
> Components: Integration
> Affects Versions: 2.0.6
> Environment: struts 2.0.6, jdk1.5.0_06, window XP
> Reporter: Florent Ramière
> Priority: Major
>
> I reproduced the xwork bug I just created here, as it is impacting struts2 developers. Please remove this bug if it is not appropriate.
> ---
> Original bug : http://jira.opensymphony.com/browse/XW-528
> ---
> When working with ' (quotes) in properties, we encounter a side effect that is related to bug #4293229 at sun.com (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4293229)
> Basically, what this bug says is the following:
> - double your ' when using messageFormat
> - do not double your ' when using getProperty
> As LocalizedTextUtil always use messageFormat, when mixing regular resourcebundle (in the heart of the application) and getText (in jsp, freemarker etc) when have inconsistencies.
> Some key will be displayed correctly, and some others will be displayed with double quotes.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)