Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 62476 invoked from network); 1 Mar 2006 07:20:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Mar 2006 07:20:25 -0000 Received: (qmail 61524 invoked by uid 500); 1 Mar 2006 07:21:07 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 61458 invoked by uid 500); 1 Mar 2006 07:21:06 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 61434 invoked by uid 99); 1 Mar 2006 07:21:06 -0000 Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Feb 2006 23:21:06 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id BD033126 for ; Wed, 1 Mar 2006 08:20:44 +0100 (CET) Message-ID: <533594561.1141197644766.JavaMail.jira@ajax.apache.org> Date: Wed, 1 Mar 2006 08:20:44 +0100 (CET) From: "David Crossley (JIRA)" To: dev@cocoon.apache.org Subject: [jira] Updated: (COCOON-1606) [BUG+PATCH] FormattingDecimalConvertor.java does not parse in BigDecimal mode MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/COCOON-1606?page=all ] David Crossley updated COCOON-1606: ----------------------------------- Bugzilla Id: (was: 36731) Other Info: [Patch available] Description: This patch enables BigDecimal parsing in FormattingDecimalConvertor. Basically if you have a widget with datatype decimal and enter a very large number, something like 999999991999999999199999999919999999991 and submit the form you'll get someting like a rounded value in technical notation. same thing with datatype long, to be seen in the samples at http://cocoon.zones.apache.org/demos/release/samples/blocks/forms/form1 click NumberFields to change tab and enter 999999991999999999199999999919999999991 into "Enter another number, larger than the other number:" submit, then you get as value for the same field: 9,223,372,036,854,775,807 which is quite the same, though its no BigDecimal problem. at least some kind of validation error should occur... but a webapp changing user submitted values without a hint is a rather hot thing :-). was: This patch enables BigDecimal parsing in FormattingDecimalConvertor. Basically if you have a widget with datatype decimal and enter a very large number, something like 999999991999999999199999999919999999991 and submit the form you'll get someting like a rounded value in technical notation. same thing with datatype long, to be seen in the samples at http://cocoon.zones.apache.org/demos/release/samples/blocks/forms/form1 click NumberFields to change tab and enter 999999991999999999199999999919999999991 into "Enter another number, larger than the other number:" submit, then you get as value for the same field: 9,223,372,036,854,775,807 which is quite the same, though its no BigDecimal problem. at least some kind of validation error should occur... but a webapp changing user submitted values without a hint is a rather hot thing :-). > [BUG+PATCH] FormattingDecimalConvertor.java does not parse in BigDecimal mode > ----------------------------------------------------------------------------- > > Key: COCOON-1606 > URL: http://issues.apache.org/jira/browse/COCOON-1606 > Project: Cocoon > Type: Bug > Components: Blocks: Forms > Versions: 2.1.8 > Environment: Operating System: other > Platform: All > Reporter: Thomas Lutz > Assignee: Cocoon Developers Team > Attachments: FormattingDecimalConvertor.java.tar.gz > > This patch enables BigDecimal parsing in FormattingDecimalConvertor. > Basically if you have a widget with datatype decimal and enter a very large > number, something like 999999991999999999199999999919999999991 and submit > the form you'll get someting like a rounded value in technical notation. > same thing with datatype long, to be seen in the samples at > http://cocoon.zones.apache.org/demos/release/samples/blocks/forms/form1 > click NumberFields to change tab and enter > 999999991999999999199999999919999999991 > into "Enter another number, larger than the other number:" > submit, then you get as value for the same field: > 9,223,372,036,854,775,807 > which is quite the same, though its no BigDecimal problem. > at least some kind of validation error should occur... but a webapp > changing user submitted values without a hint is a rather hot thing :-). -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira