commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (VALIDATOR-332) IIBANCheckDigit.calculate does not enforce initial checksum value
Date Mon, 09 Nov 2015 22:39:10 GMT

     [ https://issues.apache.org/jira/browse/VALIDATOR-332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sebb resolved VALIDATOR-332.
----------------------------
       Resolution: Fixed
    Fix Version/s: 1.5.0

Author: sebb
Date: Mon Nov  9 22:37:28 2015
New Revision: 1713565

URL: http://svn.apache.org/viewvc?rev=1713565&view=rev
Log:
VALIDATOR-332 IIBANCheckDigit.calculate does not enforce initial checksum value

Modified:
    commons/proper/validator/trunk/src/changes/changes.xml
    commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/checkdigit/IBANCheckDigit.java


> IIBANCheckDigit.calculate does not enforce initial checksum value
> -----------------------------------------------------------------
>
>                 Key: VALIDATOR-332
>                 URL: https://issues.apache.org/jira/browse/VALIDATOR-332
>             Project: Commons Validator
>          Issue Type: Bug
>            Reporter: Sebb
>             Fix For: 1.5.0
>
>
> 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".



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message