NPE creating an account for removed currency    
---------------------------------------------

                 Key: MIFOS-2758
                 URL: http://mifosforge.jira.com/browse/MIFOS-2758
             Project: mifos
          Issue Type: Bug
          Components: Loan Account
            Reporter: jbrewster


User gets an exception when creating a new loan account when loan product's 
currency has been removed from custom properties.  

Repro steps:
1. Define two currencies in Mifos applicationConfiguration.custom.properties:
AccountingRules.CurrencyCode=INR
AccountingRules.AdditionalCurrencyCodes=EUR
2. add loan product for EUR currency.
3. stop mifos, remove additionalcurrencycodes=EUR from custom properties
4. start mifos, create loan account using product defined in step 2.
5. on create loan account page, click continue

actual result: attached illegal argument exception

expected result:  user-friendly error message telling the user the loan product 
contains an undefined currency code.

I don't think this is a critical bug, since we should assume admins won't be 
randomly removing currencies from their deployments.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://mifosforge.jira.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues

Reply via email to