You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Niall Pemberton (JIRA)" <ji...@apache.org> on 2013/12/03 04:53:35 UTC
[jira] [Commented] (VALIDATOR-325) IBAN validation not calculated
correctly
[ https://issues.apache.org/jira/browse/VALIDATOR-325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13837299#comment-13837299 ]
Niall Pemberton commented on VALIDATOR-325:
-------------------------------------------
Its been quite a while since I worked on validator, but I believe it only provides IBAN check digit validation out of the box - not length.
Validator has the CodeValidator which can combine a CheckDigit validation with regex or length checks - so you could combine that with the IBANCheckDigit[2] to create a Belgian IBAN validator
[1] http://commons.apache.org/proper/commons-validator/javadocs/api-1.4.0/org/apache/commons/validator/routines/CodeValidator.html
[2] http://commons.apache.org/proper/commons-validator/javadocs/api-1.4.0/org/apache/commons/validator/routines/checkdigit/IBANCheckDigit.html
P.S. Its useful if you post the Validator version you're using and examples of code. Also this would have been better asking on the mailing list first, before creating a bug report:
http://commons.apache.org/proper/commons-validator/mail-lists.html
> IBAN validation not calculated correctly
> ----------------------------------------
>
> Key: VALIDATOR-325
> URL: https://issues.apache.org/jira/browse/VALIDATOR-325
> Project: Commons Validator
> Issue Type: Bug
> Reporter: Wim Vleugels
>
> When I try to validate an incorrect belgian IBAN code "BE7436302152834", than it passes the validation without any problem although even the length of the code is invalid.
--
This message was sent by Atlassian JIRA
(v6.1#6144)