|Applies To||RSA BSAFE Cert-J 1.0|
RSA BSAFE Cert-J 1.8
This bug is in the savePathCtx method in the CertPathCommonImplementation class. This method is an internal private method.
|Issue||How to resolve ArrayIndexOutOfBoundsException received when using the CertJ.buildCertPath method in RSA BSAFE Cert-J|
The function buildCertPath calls an internal function that copies the path context.
When copying the policies it loops through the number of certs instead of the number of policies.
|Cause||There is a bug in Cert-J 1.0 and 1.8. The function buildCertPath calls an internal function that copies the path context. However, when copying the policies it loops through the number of certs instead of the number of policies. If these numbers are the same then no exception will occur. It is only if these numbers are different that a problem happens.|
|Resolution||In Cert-J 1.8 this bug should not appear (unless someone specifically calls this class) since Cert-J 1.8 uses the CertPathCommon class and the CertPathCommonImplementation class is not used.|
There is a patch for this in Cert-J 1.0. You can download the updated Cert-J class file from RSA SecurCare Online or contact support for the patched CertPathCommonImplementation class file. If you want a patch for 1.8 you can contact Support to request that a patch for that version be created. The best solution is to upgrade to the latest version of Cert-J.
This bug is fixed in Cert-J 2.0.
|Legacy Article ID||a3120|