Uploaded image for project: 'Commons Validator'
  1. Commons Validator
  2. VALIDATOR-330

IbanCheckDigit.isValid() returns True for some invalid IBANs

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.0 Release
    • Fix Version/s: 1.5.0
    • Component/s: Routines
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              pshawe Peter Shawe
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: