harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leo Li (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-3431) [classlib][luni]java.net.JarURLConnection fails to get certificates.
Date Sat, 28 Apr 2007 03:42:15 GMT

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

Leo Li commented on HARMONY-3431:
---------------------------------

Hi, Mikhail:
      Excuse me if I am confusing you.
      The URL should point to the bcprov which is used as the security provider for Harmony.
      It is also a bootstrap problem for security provider. One of my suggestion is that,
use an built-in security provider in bootstrap, that is, in JarVerifier,  we just load the
specified provider class and get some security tools just from it, and do not use the normal
load mechanism in security module in order to avoid the "chicken and egg "problem.


Good luck!
Leo.


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