Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-4870

StringConverter from OGNL 3.1.15 in Struts 2.5.13

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 2.5.13
    • Fix Version/s: 2.5.14
    • Component/s: None
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              afages Amaury
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: