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/04/28 07:49:37 UTC

[jira] Created: (HARMONY-419) [classlib][security] X.509 Certificate Factory provider throw NPE

[classlib][security] X.509 Certificate Factory provider throw NPE
-----------------------------------------------------------------

         Key: HARMONY-419
         URL: http://issues.apache.org/jira/browse/HARMONY-419
     Project: Harmony
        Type: Bug

  Components: Classlib  
    Reporter: Alexander Kleymenov
    Priority: Minor


Certificates and CRLs generated by X.509 Certificate Factory implementation throw NPE when accessing the value of nonexisting extension while API specification in this case demands to return null.

-- 
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-419) [classlib][security] X.509 Certificate Factory provider throw NPE

Posted by "Mikhail Loenko (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-419?page=all ]
     
Mikhail Loenko closed HARMONY-419:
----------------------------------


verified by  Alexander

> [classlib][security] X.509 Certificate Factory provider throw NPE
> -----------------------------------------------------------------
>
>          Key: HARMONY-419
>          URL: http://issues.apache.org/jira/browse/HARMONY-419
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Alexander Kleymenov
>     Assignee: Mikhail Loenko
>     Priority: Minor
>  Attachments: npe_patch.txt, test.java
>
> Certificates and CRLs generated by X.509 Certificate Factory implementation throw NPE when accessing the value of nonexisting extension while API specification in this case demands to return null.

-- 
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-419) [classlib][security] X.509 Certificate Factory provider throw NPE

Posted by "Mikhail Loenko (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-419?page=all ]
     
Mikhail Loenko resolved HARMONY-419:
------------------------------------

    Resolution: Fixed

fixed in revision 398814
Alexander, please check that it resolves the problem

> [classlib][security] X.509 Certificate Factory provider throw NPE
> -----------------------------------------------------------------
>
>          Key: HARMONY-419
>          URL: http://issues.apache.org/jira/browse/HARMONY-419
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Alexander Kleymenov
>     Assignee: Mikhail Loenko
>     Priority: Minor
>  Attachments: npe_patch.txt, test.java
>
> Certificates and CRLs generated by X.509 Certificate Factory implementation throw NPE when accessing the value of nonexisting extension while API specification in this case demands to return null.

-- 
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-419) [classlib][security] X.509 Certificate Factory provider throw NPE

Posted by "Alexander Kleymenov (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-419?page=all ]

Alexander Kleymenov updated HARMONY-419:
----------------------------------------

    Attachment: test.java

This problem can be reproduced by attached test. 

Now the output of the test is as follows:

FAILED
java.lang.NullPointerException
        at org.apache.harmony.security.provider.cert.X509CertImpl.getExtensionValue(X509CertImpl.java:420)
        at Test.main(Test.java:48)
FAILED
java.lang.NullPointerException
        at org.apache.harmony.security.provider.cert.X509CRLImpl.getExtensionValue(X509CRLImpl.java:400)
        at Test.main(Test.java:59)



> [classlib][security] X.509 Certificate Factory provider throw NPE
> -----------------------------------------------------------------
>
>          Key: HARMONY-419
>          URL: http://issues.apache.org/jira/browse/HARMONY-419
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Alexander Kleymenov
>     Priority: Minor
>  Attachments: test.java
>
> Certificates and CRLs generated by X.509 Certificate Factory implementation throw NPE when accessing the value of nonexisting extension while API specification in this case demands to return null.

-- 
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-419) [classlib][security] X.509 Certificate Factory provider throw NPE

Posted by "Alexander Kleymenov (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-419?page=all ]

Alexander Kleymenov updated HARMONY-419:
----------------------------------------

    Attachment: npe_patch.txt

Attached patch fixes this problem and implements corresponding regression tests.

> [classlib][security] X.509 Certificate Factory provider throw NPE
> -----------------------------------------------------------------
>
>          Key: HARMONY-419
>          URL: http://issues.apache.org/jira/browse/HARMONY-419
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Alexander Kleymenov
>     Priority: Minor
>  Attachments: npe_patch.txt, test.java
>
> Certificates and CRLs generated by X.509 Certificate Factory implementation throw NPE when accessing the value of nonexisting extension while API specification in this case demands to return null.

-- 
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-419) [classlib][security] X.509 Certificate Factory provider throw NPE

Posted by "Alexander Kleymenov (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-419?page=comments#action_12377373 ] 

Alexander Kleymenov commented on HARMONY-419:
---------------------------------------------

Verified. Looks fine.

> [classlib][security] X.509 Certificate Factory provider throw NPE
> -----------------------------------------------------------------
>
>          Key: HARMONY-419
>          URL: http://issues.apache.org/jira/browse/HARMONY-419
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Alexander Kleymenov
>     Assignee: Mikhail Loenko
>     Priority: Minor
>  Attachments: npe_patch.txt, test.java
>
> Certificates and CRLs generated by X.509 Certificate Factory implementation throw NPE when accessing the value of nonexisting extension while API specification in this case demands to return null.

-- 
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-419) [classlib][security] X.509 Certificate Factory provider throw NPE

Posted by "Mikhail Loenko (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-419?page=all ]

Mikhail Loenko reassigned HARMONY-419:
--------------------------------------

    Assign To: Mikhail Loenko

> [classlib][security] X.509 Certificate Factory provider throw NPE
> -----------------------------------------------------------------
>
>          Key: HARMONY-419
>          URL: http://issues.apache.org/jira/browse/HARMONY-419
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Alexander Kleymenov
>     Assignee: Mikhail Loenko
>     Priority: Minor
>  Attachments: npe_patch.txt, test.java
>
> Certificates and CRLs generated by X.509 Certificate Factory implementation throw NPE when accessing the value of nonexisting extension while API specification in this case demands to return null.

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