Date additional field doesn't validate for leading digits, causing NPE
----------------------------------------------------------------------
Key: MIFOS-2977
URL: http://mifosforge.jira.com/browse/MIFOS-2977
Project: mifos
Issue Type: Bug
Components: Configuration
Affects Versions: Shamim D
Reporter: jbrewster
Priority: Major
Issue MIFOS-1963 reintroduced the Date type additional field.
User is able to input date values that have too many digits and make no logical
sense (e.g. NewDate: 00023/010/2030). This eventually cause errors trying to
later edit the field that has invalid data. Haven't found a way to recover
from this condition once it's introduced to a specific record without doing
editing directly to the database.
Repro steps:
1. create a new additional field with data type of "date".
2. create new entity that includes addition field, e.g. new office.
3. Enter a valid date, save, then edit to replace with a silly date:
00023/010/2030
4. click preview.
Get attached NPE report. Continue to get that error for that center after
exiting page, logging of browser, etc.
expected result:
Preview is blocked until value entered meets dd/mm/yyyy form.
--
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
------------------------------------------------------------------------------
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues