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

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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment