You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexander Kleymenov (JIRA)" <ji...@apache.org> on 2006/10/05 06:50:20 UTC

[jira] Updated: (HARMONY-1701) [classlib][security] X.509 framework fails to encode IssuingDistributionPoint extension.

     [ http://issues.apache.org/jira/browse/HARMONY-1701?page=all ]

Alexander Kleymenov updated HARMONY-1701:
-----------------------------------------

    Attachment: patch-fails2encode.txt

Attached patch fixes this problem and implements regression test.
The unit test also includes the check on correctness of encoding/decoding work on CRLNumber extension.
Also the patch slightly improves the API of IssuingDistributionPoint class.

> [classlib][security] X.509 framework fails to encode IssuingDistributionPoint extension.
> ----------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1701
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1701
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Alexander Kleymenov
>         Attachments: patch-fails2encode.txt
>
>
> ASN.1 encoder of IssuingDistributionPoint extension is incorrect. While trying to encode the structure it fails with the following exception:
> java.lang.IllegalArgumentException: Implicit tagging can not be used for ASN.1 ANY or CHOICE type
>         at org.apache.harmony.security.asn1.ASN1Implicit.<init>(ASN1Implicit.java:83)
>         at org.apache.harmony.security.asn1.ASN1Implicit.<init>(ASN1Implicit.java:64)
>         at org.apache.harmony.security.x509.IssuingDistributionPoint.<clinit>(IssuingDistributionPoint.java:183)
> and while trying to encode ReasonFlags structure (subpart of IssuingDistributionPoint) it fails with the following exception:
> java.lang.ClassCastException: [Z incompatible with org.apache.harmony.security.asn1.BitString
>         at org.apache.harmony.security.asn1.BerOutputStream.encodeBitString(BerOutputStream.java:89)
>         at org.apache.harmony.security.asn1.ASN1BitString.encodeContent(ASN1BitString.java:99)
>         at org.apache.harmony.security.asn1.ASN1Implicit.encodeContent(ASN1Implicit.java:166)
>         ...

-- 
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