Page with Stack trace appears after selecting fee of type: '% Loan Amount+Interest' or '% Interest', entering amount with big number and trying to create new Loan account

Description

During the Loan account creation flow, after selecting fee of type: '% Loan Amount+Interest' or '% Interest' and entering amount with big number and then after clicking Submit button, page with stack trace appears.

Repro:
1. Login to Mifos.
2. Click on 'Create new Loan account' link.
3. Select any client and loan product.
4. On 'Enter Loan account information' page, fill all necessary fields, select additional fee of type: '% Loan Amount+Interest' or '% Interest' and enter amount for it: "10000000000000000000000000000000000"
5. Click on Continue button.
6. Click Preview button.
7. Click Submit button.

Expected result:
There should be validation for the number of digits before decimal for fees of type: '% Loan Amount+Interest' and '% Interest'.

Actual result:
Page with stack trace appears. See attached file.

Environment

None

Activity

Show:
UdaiU
July 13, 2011, 6:35 AM

Don't leave issue in progress when it's not assigned.

Mifos Hudson Jira Plugin User
September 21, 2011, 2:51 PM

Integrated in

head-g-release-secondary #140
MIFOS-5076: Added digits number validation for intereset fees. Added tests for the new validation.

Rafal Lewandowski :
Files :

  • userInterface/src/main/java/org/mifos/clientportfolio/loan/ui/LoanAccountFormBean.java

  • userInterface/src/test/java/org/mifos/clientportfolio/loan/ui/LoanAccountFormBeanTest.java

Rafal Lewandowski
September 21, 2011, 2:55 PM

Added validation for additional fees with interest rate values. Added tests for the new validation.

Mifos Hudson Jira Plugin User
September 22, 2011, 2:28 PM

Integrated in

head-master-secondary #508
MIFOS-5076: Added digits number validation for intereset fees. Added tests for the new validation.

Rafal Lewandowski :
Files :

  • userInterface/src/main/java/org/mifos/clientportfolio/loan/ui/LoanAccountFormBean.java

  • userInterface/src/test/java/org/mifos/clientportfolio/loan/ui/LoanAccountFormBeanTest.java

Lukasz Chudy
October 4, 2011, 1:32 PM

Verified on 04.10.2011
Bug has been fixed properly.

Assignee

Rafal Lewandowski

Reporter

Lukasz Chudy

Labels

None

URL

None

Story Points

None

Team

Core

Scheduled For

None

Epic

None

Notify

None

productboard URL

None

Man Day Estimate

None

Components

Fix versions

Affects versions

Priority

Minor
Configure