[
https://issues.apache.org/jira/browse/FINERACT-1013?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Adam Saghy closed FINERACT-1013.
--------------------------------
Resolution: Not A Problem
> 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
> Priority: Major
>
> 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.20.10#820010)