harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Kleymenov (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-1701) [classlib][security] X.509 framework fails to encode IssuingDistributionPoint extension.
Date Thu, 05 Oct 2006 04:50:20 GMT
     [ 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
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
>         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


View raw message