Bug 653 - java.lang.ArrayIndexOutOfBoundsException in org.bouncycastle.asn1.x509.BasicConstraints
: java.lang.ArrayIndexOutOfBoundsException in org.bouncycastle.asn1.x509.BasicC...
Status: RESOLVED FIXED
: CoG jglobus
security
: unspecified
: PC Windows 2000
: P2 normal
: ---
Assigned To:
:
:
:
:
  Show dependency treegraph
 
Reported: 2003-01-29 15:03 by
Modified: 2005-12-05 17:00 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2003-01-29 15:03:37
The following error is returned when the certificate contains an invalid 
BasicConstraints extension (the 'CA' field which is required is missing):

java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
         at java.util.Vector.elementAt(Vector.java:427)
         at 
org.bouncycastle.asn1.ASN1Sequence.getObjectAt(ASN1Sequence.java:110)
         at 
org.bouncycastle.asn1.x509.BasicConstraints.<init>(BasicConstraints.java:38)
         at 
org.bouncycastle.asn1.x509.BasicConstraints.getInstance
(BasicConstraints.java:29)
         at 
org.globus.gsi.bc.BouncyCastleUtil.getBasicConstraints
(BouncyCastleUtil.java:162)
------- Comment #1 From 2003-01-29 15:05:02 -------
Added a workaround for this error. 
But the best solution is to fix the extension in the certificate.