You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Tom Lorenz (JIRA)" <ji...@apache.org> on 2014/01/24 11:45:37 UTC

[jira] [Created] (VALIDATOR-328) wrong checksum calculated

Tom Lorenz created VALIDATOR-328:
------------------------------------

             Summary: wrong checksum calculated
                 Key: VALIDATOR-328
                 URL: https://issues.apache.org/jira/browse/VALIDATOR-328
             Project: Commons Validator
          Issue Type: Bug
          Components: Routines
    Affects Versions: 1.4.0 Release
            Reporter: Tom Lorenz


For the IBAN DE00360700240006360796 the checksum 62 is calculated, 92 would be correct.

Test in groovy:
import org.apache.commons.validator.routines.checkdigit.IBANCheckDigit;
def ibanCheckDigit=new IBANCheckDigit();

println ibanCheckDigit.isValid("DE92360700240006360796");
println ibanCheckDigit.isValid("DE62360700240006360796");
println ibanCheckDigit.calculate("DE00360700240006360796");

Result:
false
true
62



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)