Return-Path: X-Original-To: apmail-struts-issues-archive@minotaur.apache.org Delivered-To: apmail-struts-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 60B3E18E11 for ; Thu, 31 Dec 2015 12:14:55 +0000 (UTC) Received: (qmail 3134 invoked by uid 500); 31 Dec 2015 12:14:49 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 3094 invoked by uid 500); 31 Dec 2015 12:14:49 -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 3079 invoked by uid 99); 31 Dec 2015 12:14:49 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Dec 2015 12:14:49 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id AABA62C14F9 for ; Thu, 31 Dec 2015 12:14:49 +0000 (UTC) Date: Thu, 31 Dec 2015 12:14:49 +0000 (UTC) From: "victorsosa (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (WW-4269) blank double results in NumberFormatException being thrown on sending JSON in request body MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/WW-4269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15075918#comment-15075918 ] victorsosa commented on WW-4269: -------------------------------- Ok Then I will commit using the PR on Github > 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)