Bug 797135

Summary: BigDecimal 99.99B in TestScenario results in NumberFormatException
Product: [JBoss] JBoss Enterprise BRMS Platform 5 Reporter: Zuzana Krejčová <zkrejcov>
Component: BRM (Guvnor)Assignee: Toni Rikkola <trikkola>
Status: ASSIGNED --- QA Contact: Lukáš Petrovický <lpetrovi>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: BRMS 5.3.0.GACC: atangrin, lpetrovi
Target Milestone: ---   
Target Release: future   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Zuzana Krejčová 2012-02-24 11:10:29 UTC
Description of problem:
BigDecimal field of a 'Given fact' with a value 99.99B in TestScenario results in NumberFormatException. The value can be entered via copy&paste, it can't be typed in.


Version-Release number of selected component (if applicable):
BRMS 5.3.0 ER4


Steps to Reproduce:
1. Create a new model with a fact with BigDecimal field.
2. Create a test scenario with a given fact, that one you just created, add the BigDecimal field and copy&paste 99.99B into it. 
3. Save and run the test scenario.

  
Actual results:
Error dialogue - the test cannot be run - and a java.lang.NumberFormatException exception in the server log.


Expected results:
No error, no exception. 


Additional info:
This is closely related to https://bugzilla.redhat.com/show_bug.cgi?id=724448 - Support for BigDecimal in Guided Editor.

Comment 1 Zuzana Krejčová 2012-02-24 11:24:22 UTC
The value 99.99 in a BigDecimal field in test scenarios seems to be understood as BigDecimal even without the B annotation. It matches with 99.99B from a guided rule rhs, it doesn't match 99.99 in the same field in the rule.

Comment 5 Ryan Zhang 2012-03-21 09:55:52 UTC
Please verify this issue on ER5.

Comment 6 manstis 2012-03-21 12:08:53 UTC
Please see comment #3. It has not been back-ported to 5.3.x. I proposed it is
shifted to the subsequent release. Please also note the expectation was that Test Scenarios use TextBoxFactory to ensure value editors were correct for the data-type. Toni Rikkola has been making changes in this area. BZ assigned to Toni to confirm (future) release resolves this issue.

Comment 8 Ryan Zhang 2012-04-23 07:37:38 UTC
Update status to ON_QA. Please verify them against ER6.