harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Markov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-3431) [classlib][luni]java.net.JarURLConnection fails to get certificates.
Date Mon, 07 May 2007 18:01:24 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-3431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12494095
] 

Mikhail Markov commented on HARMONY-3431:
-----------------------------------------

Hi, Leo,

I've used the correct url pointing to the bcprov and it works for me on Harmony - I've got
2 X.509 certificates.

If i remove bcprov.jar file from jdk/jre/lib/ext directory then i've got:
java.io.FileNotFoundException: JAR entry org/bouncycastle/asn1/DEREnumerated.class not found
in C:/jdk/harmony/svn/enhanced/classlib/trunk/deploy/jdk/jre/lib/ext/bcprov.jar

Is that what you mean?

Thanks, Mikhail

> [classlib][luni]java.net.JarURLConnection fails to get certificates.
> --------------------------------------------------------------------
>
>                 Key: HARMONY-3431
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3431
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Leo Li
>
> Here is an example:
>  public void test() throws Exception
>     {
>         URL url = new URL("jar:file:D:/workspaces/workspace/harmony/deploy/jdk/jre/lib/ext/bcprov.jar!/org/bouncycastle/asn1/DEREnumerated.class");
>         JarURLConnection connection = (JarURLConnection) url.openConnection();
>         InputStream in = connection.getInputStream();
>         byte[] data = new byte[1024];
>         while(in.read(data)>=0);
>         in.close();
>         assertNotNull(connection.getCertificates());        
>     }
> RI passes.
> Harmony fails.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message