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/04 02:52:35 UTC

[jira] [Updated] (VALIDATOR-325) IBAN validation not calculated correctly

     [ https://issues.apache.org/jira/browse/VALIDATOR-325?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Niall Pemberton updated VALIDATOR-325:
--------------------------------------

    Attachment: IBANValidator.java

It is pretty straight forward to combine the regular expression validator with the IBAN checkdigit to create a validator that caters for all country formats.

The biggest effort is defining all the regular expression formats for each country. I'm attaching an IBANValidator that does this.

This needs a proper test case to verify all the formats (I've only tested it with your Belgian example).

> 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
>             Fix For: 1.4.0 Release
>
>         Attachments: IBANValidator.java
>
>
> 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)