You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Nitin Surana (JIRA)" <ji...@apache.org> on 2014/01/10 21:09:51 UTC

[jira] [Updated] (WW-4241) Negative Integers not submitted when language is arabic

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

Nitin Surana updated WW-4241:
-----------------------------

    Attachment: NumberConverter.java

I was able to solve it by writing a custom NumberConverter. You can close this, as I searched but found no-one with same problem.

> Negative Integers not submitted when language is arabic
> -------------------------------------------------------
>
>                 Key: WW-4241
>                 URL: https://issues.apache.org/jira/browse/WW-4241
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions, Core Interceptors
>    Affects Versions: 2.3.15
>         Environment: windows 7 64-bit, tomcat 7.0.41 & jdk 1.7 using netbeans 7.4/7.3 (tried both)
>            Reporter: Nitin Surana
>            Priority: Blocker
>              Labels: arabic, internationalization
>             Fix For: 2.3.17
>
>         Attachments: NumberConverter.java
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> Negative integers are giving OGNL error setting expression when submitted through form post or query string ONLY when the language is arabic. For all other languages the form works fine & no OGNL errors. The negative integer value is perfectly received at the action side.
> I have also posted the question in very detail here :
> http://stackoverflow.com/questions/19875848/query-string-urls-behave-incorrectly-after-the-language-is-changed
> The SSCCE to demonstrate this bug is available here https://dl.dropboxusercontent.com/u/109241721/Struts2Example.zip
> username is an integer, it accepts both positive & negative integers when not using arabic language, but as soon as language is changed to arabic, it doesn't accept negative integers and start throwing OGNL exceptions for error setting expression.
> You guys can reach me at nitin.cool4urchat@gmail.com for any more information required.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)