You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (JIRA)" <ji...@apache.org> on 2014/02/26 07:45:26 UTC

[jira] [Comment Edited] (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:comment-tabpanel&focusedCommentId=13912183#comment-13912183 ] 

Lukasz Lenart edited comment on WW-4241 at 2/26/14 6:44 AM:
------------------------------------------------------------

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


was (Author: johno):
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.cool4urchat@gmail.com for any more information required.



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