[ 
https://issues.apache.org/jira/browse/WW-4241?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13912183#comment-13912183
 ] 

Johno Crawford commented on WW-4241:
------------------------------------

Close as won't fix? The answer in stackoverflow sums it up nicely. "Actually it 
is very simple: Arabic is right to left script. So your -1 is actually 1- (and 
a String) you need to input 1- to post negative integers."

http://stackoverflow.com/a/19904903

> 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.cool4urc...@gmail.com for any more information 
> required.



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

Reply via email to