Petri Tuomola created FINERACT-1013:
---------------------------------------
Summary: Validation of boolean input values not working
Key: FINERACT-1013
URL: https://issues.apache.org/jira/browse/FINERACT-1013
Project: Apache Fineract
Issue Type: Bug
Reporter: Petri Tuomola
There's a method validateForBooleanValue which is used in a lot of places to
check that an input is a valid boolean.
The problem is that, in all the cases where it is used, the value to be checked
is retrieved from the input JSON with extractBooleanNamed() - which always
returns a valid boolean value, even if the string provided is not a valid
boolean.
So the validation code should be changed to retrieve the boolean inputs as
Strings, and then using trueOrFalseRequired() validator to confirm that the
String is a valid boolean value.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)