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

IIBANCheckDigit.calculate does not enforce initial checksum value

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

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

      Description

      The IBANCheckDigit.calculate Javadoc states that the initial check digits should be "00" but does not enforce this.

      If the check digits are not "00" initially, the calculated check digits will be incorrect, leading to potentially unexpected behaviour.

      The code should either throw a CheckDigitException or force the initial value to "00".

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sebb Sebb

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment