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

IBANCheckDigitTest.createInvalidCodes(String[] codes) uses wrong values

    Details

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

      Description

      The method IBANCheckDigitTest.createInvalidCodes(String[] codes) tries to
      create bad check-digit IBANs from valid ones by replacing the check digit pair with something different.

      However the code to do this is faulty, as it assumes check digits are in the range 00-95. This is wrong, as check digits are actually in the range 02-98.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sebb@apache.org Sebb
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: