commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Lorenz (JIRA)" <j...@apache.org>
Subject [jira] [Created] (VALIDATOR-328) wrong checksum calculated
Date Fri, 24 Jan 2014 10:45:37 GMT
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)

Mime
View raw message