You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@fineract.apache.org by "Petri Tuomola (Jira)" <ji...@apache.org> on 2020/05/30 19:12:00 UTC
[jira] [Assigned] (FINERACT-1013) Validation of boolean input
values not working
[ https://issues.apache.org/jira/browse/FINERACT-1013?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Petri Tuomola reassigned FINERACT-1013:
---------------------------------------
Assignee: Petri Tuomola
> 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
> Assignee: 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.3.4#803005)