Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 26384 invoked from network); 12 Jun 2007 03:35:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Jun 2007 03:35:47 -0000 Received: (qmail 2977 invoked by uid 500); 12 Jun 2007 03:35:50 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 2946 invoked by uid 500); 12 Jun 2007 03:35:50 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 2936 invoked by uid 99); 12 Jun 2007 03:35:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jun 2007 20:35:50 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jun 2007 20:35:46 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 645357141FF for ; Mon, 11 Jun 2007 20:35:26 -0700 (PDT) Message-ID: <3937345.1181619326407.JavaMail.jira@brutus> Date: Mon, 11 Jun 2007 20:35:26 -0700 (PDT) From: "Leo Li (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-3431) [classlib][luni]java.net.JarURLConnection fails to get certificates. In-Reply-To: <29400103.1174355612400.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-3431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12503713 ] Leo Li commented on HARMONY-3431: --------------------------------- Hi, Mikhail: Besides, in order to reproduce the problem, the testcase must run stand-alone, that is, no other actions that might lead to load security providers shall begin before the testcase. I believe, it is a bootstrap problem of loading security provider. Harmony needs a solution for it and I am now searching for a way. 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.