[
https://issues.apache.org/jira/browse/WW-4269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15075919#comment-15075919
]
ASF GitHub Bot commented on WW-4269:
------------------------------------
GitHub user victorsosa opened a pull request:
https://github.com/apache/struts/pull/61
fix for WW-4269
blank double results in NumberFormatException being thrown on sending
JSON in request body
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/victorsosa/struts master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/struts/pull/61.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #61
----
commit db483ccd153caa97137f00cb4ff2ebd35143d56e
Author: Victor Sosa <[email protected]>
Date: 2015-12-30T17:36:58Z
fix for WW-4269
blank double results in NumberFormatException being thrown on sending
JSON in request body
----
> blank double results in NumberFormatException being thrown on sending JSON in
> request body
> ------------------------------------------------------------------------------------------
>
> Key: WW-4269
> URL: https://issues.apache.org/jira/browse/WW-4269
> Project: Struts 2
> Issue Type: Bug
> Components: Plugin - JSON
> Affects Versions: 2.3.15
> Environment: windows 7 64-bit, jdk 7 & struts2.3.15
> Reporter: Nitin Surana
> Priority: Blocker
> Labels: easyfix
> Fix For: 2.5
>
> Attachments: ww-4269.patch
>
>
> If the http request contains JSON in the body, which has any problem in
> getting converted to an object, then it throws Exception calling the
> global-exception-handler. Instead it should return INPUT as by the validate
> interceptor, mentioning the field having the error in fieldErrors.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)