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

IbanCheckDigit.isValid() returns True for some invalid IBANs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4.0 Release
    • 1.5.0
    • Routines
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: