You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Mikhail Markov (JIRA)" <ji...@apache.org> on 2007/05/07 20:01:24 UTC
[jira] Commented: (HARMONY-3431)
[classlib][luni]java.net.JarURLConnection fails to get certificates.
[ 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.