You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2015/11/10 01:47:11 UTC
[jira] [Commented] (VALIDATOR-330) IbanCheckDigit.isValid() returns
True for some invalid IBANs
[ https://issues.apache.org/jira/browse/VALIDATOR-330?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14997755#comment-14997755 ]
Sebb commented on VALIDATOR-330:
--------------------------------
The European Payments Council provide a document [1] which says:
"Calculate the modulo 97 and subtract the remainder from 98"
[1] http://www.europeanpaymentscouncil.eu/documents/ECBS IBAN standard EBS204_V3.2.pdf
> IbanCheckDigit.isValid() returns True for some invalid IBANs
> ------------------------------------------------------------
>
> Key: VALIDATOR-330
> URL: https://issues.apache.org/jira/browse/VALIDATOR-330
> Project: Commons Validator
> Issue Type: Bug
> Components: Routines
> Affects Versions: 1.4.0 Release
> Reporter: Peter Shawe
>
> For example, isValid() returns True for both of these IBANs; "IE01AIBK93118702569045" and "IE98AIBK93118702569045". The "IE98" version is the correct one (confirmed with online checkers, which also fail the "IE01" version).
> calculate() correctly returns "98". As a workaround I'm calling calculate() and comparing the result with the checksum in the original IBAN.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)