You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Lukasz Lenart (JIRA)" <ji...@apache.org> on 2017/10/12 18:05:00 UTC

[jira] [Closed] (OGNL-258) StringConverter from 3.1.15 version (included in 2.5.13)

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

Lukasz Lenart closed OGNL-258.
------------------------------
    Resolution: Invalid

Duplicates WW-4870

> StringConverter from 3.1.15 version (included in 2.5.13)
> --------------------------------------------------------
>
>                 Key: OGNL-258
>                 URL: https://issues.apache.org/jira/browse/OGNL-258
>             Project: Commons OGNL
>          Issue Type: Bug
>            Reporter: Amaury
>
> Hi Apache / Struts 2 team,
> We've just discovered a bug with the new version 2.5.13 of Struts 2, mainly in OGNL dependency. This is not the case with 2.5.10.
> *Scenario*: we have a boolean method in a  "if" condition statement in FTL view. This method takes on argument which is a String ID in the format "X.Y" (ex: "1.1).
> *Result obtained during the OGNL parsing*: StringConverter is called according to the "locale" of the browser and apparently with "fr_FR" locale, the "X.Y" is converted to decimal format "X,Y" which is wrong since we want to stick with our ID as it arrives.
> It seems with en_US locale, the decimal conversion doesn't happen.
> *Result expected*: the ID "X.Y" goes to the "if" statement as it is, not converted in fr_Fr locale.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)