You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Tim Ellison (JIRA)" <ji...@apache.org> on 2006/03/24 07:27:18 UTC

[jira] Resolved: (HARMONY-186) X509CertSelector.match throws ArrayIndexOutOfBoundsException when checks keyUsage criterion

     [ http://issues.apache.org/jira/browse/HARMONY-186?page=all ]
     
Tim Ellison resolved HARMONY-186:
---------------------------------

    Resolution: Fixed

Thanks Stepan,

Patch applied to SECURITY module java.security.cert.X509CertSelector at repo revision 388407.

Please check that the patch was applied as you expected.


> X509CertSelector.match throws ArrayIndexOutOfBoundsException when checks keyUsage criterion
> -------------------------------------------------------------------------------------------
>
>          Key: HARMONY-186
>          URL: http://issues.apache.org/jira/browse/HARMONY-186
>      Project: Harmony
>         Type: Bug
>   Components: Classlib
>     Reporter: Stepan Mishura
>     Assignee: Tim Ellison
>  Attachments: fixHarmony186.txt
>
> According to the spec. of X509Certificate and X509CertSelector classes KeyUsage extension is represented by array of boolean values.
> But the spec. doesn't specify any restrictions on the array so instances of X509Certificate and X509CertSelector classes may have arrays of different length to be matched. If a certificate's array is longer then a selector's array then invocation of method X509CertSelector.match(java.security.cert.Certificate) throws ArrayIndexOutOfBoundsException.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira