Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 9083E200D1F for ; Fri, 13 Oct 2017 13:13:07 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8F7A51609E9; Fri, 13 Oct 2017 11:13:07 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D1EB01609D1 for ; Fri, 13 Oct 2017 13:13:06 +0200 (CEST) Received: (qmail 28365 invoked by uid 500); 13 Oct 2017 11:13:06 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 28355 invoked by uid 99); 13 Oct 2017 11:13:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Oct 2017 11:13:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 458C7C1500 for ; Fri, 13 Oct 2017 11:13:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.502 X-Spam-Level: X-Spam-Status: No, score=-99.502 tagged_above=-999 required=6.31 tests=[KAM_NUMSUBJECT=0.5, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 5OG5svMeeKpE for ; Fri, 13 Oct 2017 11:13:04 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id EEDD65F523 for ; Fri, 13 Oct 2017 11:13:03 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 8FC6AE00B3 for ; Fri, 13 Oct 2017 11:13:02 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 27EDE2140A for ; Fri, 13 Oct 2017 11:13:00 +0000 (UTC) Date: Fri, 13 Oct 2017 11:13:00 +0000 (UTC) From: "Amaury (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (WW-4870) StringConverter from OGNL 3.1.15 in Struts 2.5.13 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 13 Oct 2017 11:13:07 -0000 [ https://issues.apache.org/jira/browse/WW-4870?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16203387#comment-16203387 ] Amaury commented on WW-4870: ---------------------------- Thank you, indeed the quote trick works like a charm. Now we have to investigate further cases in the code. > StringConverter from OGNL 3.1.15 in Struts 2.5.13 > ------------------------------------------------- > > Key: WW-4870 > URL: https://issues.apache.org/jira/browse/WW-4870 > Project: Struts 2 > Issue Type: Bug > Affects Versions: 2.5.13 > Reporter: Amaury > Fix For: 2.5.14 > > > 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)