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:48:19 UTC
[jira] Created: (HARMONY-1701) [classlib][security] X.509 framework
fails to encode IssuingDistributionPoint extension.
[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
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
[jira] Closed: (HARMONY-1701) [classlib][security] X.509 framework
fails to encode IssuingDistributionPoint extension.
Posted by "Stepan Mishura (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-1701?page=all ]
Stepan Mishura closed HARMONY-1701.
-----------------------------------
Verified by Alexander.
> [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
> Assigned To: Stepan Mishura
> 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
[jira] Commented: (HARMONY-1701) [classlib][security] X.509
framework fails to encode IssuingDistributionPoint extension.
Posted by "Alexander Kleymenov (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-1701?page=comments#action_12440046 ]
Alexander Kleymenov commented on HARMONY-1701:
----------------------------------------------
Looks fine. Thank You!
> [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
> Assigned To: Stepan Mishura
> 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
[jira] Resolved: (HARMONY-1701) [classlib][security] X.509
framework fails to encode IssuingDistributionPoint extension.
Posted by "Stepan Mishura (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-1701?page=all ]
Stepan Mishura resolved HARMONY-1701.
-------------------------------------
Resolution: Fixed
Thanks Alexander , patch was applied to SECURITY module at r453111.
Please check that the patch was applied as you expected.
> [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
> Assigned To: Stepan Mishura
> 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
[jira] Updated: (HARMONY-1701) [classlib][security] X.509 framework
fails to encode IssuingDistributionPoint extension.
Posted by "Alexander Kleymenov (JIRA)" <ji...@apache.org>.
[ 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
[jira] Assigned: (HARMONY-1701) [classlib][security] X.509
framework fails to encode IssuingDistributionPoint extension.
Posted by "Stepan Mishura (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-1701?page=all ]
Stepan Mishura reassigned HARMONY-1701:
---------------------------------------
Assignee: Stepan Mishura
> [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
> Assigned To: Stepan Mishura
> 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