commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (VALIDATOR-325) IBAN validation not calculated correctly
Date Wed, 04 Dec 2013 01:52:35 GMT

     [ 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)

Mime
View raw message