-
Bug
-
Resolution: Timed out
-
Low
-
None
-
4.4.4, 5.0.6, 5.1
-
4.04
-
Severity 3 - Minor
-
1
-
-
Steps to reproduce:
- create a Number Field
- create an issue and fill in the Number Field with "1000000000000000" (16 digits) , JIRA will throws error as shown in the screenshot NumberField.png
in the logs for JIRA connecting to Oracle:
org.ofbiz.core.entity.GenericEntityException: while inserting: [GenericEntity:CustomFieldValue][id,1011261] [issue,54421][numbervalue,1.0E14][parentkey,null][customfield,12256] (SQL Exception while executing the following: INSERT INTO customfieldvalue (ID, ISSUE, CUSTOMFIELD, PARENTKEY, STRINGVALUE, NUMBERVALUE, TEXTVALUE, DATEVALUE, VALUETYPE) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) (ORA-01438: value larger than specified precision allowed for this column ))
The entitymodel.xml indicate that the numbervalue is "floating point". refer to screenshot EntityModel.xml
The fieldtype-*.xml has floating point configured to DECIMAL(18,6). refer to screenshot FieldType.png