Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 91135 invoked from network); 14 Feb 2007 13:33:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Feb 2007 13:33:30 -0000 Received: (qmail 84404 invoked by uid 500); 14 Feb 2007 13:33:37 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 84383 invoked by uid 500); 14 Feb 2007 13:33:37 -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 84356 invoked by uid 99); 14 Feb 2007 13:33:37 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Feb 2007 05:33:37 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= 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; Wed, 14 Feb 2007 05:33:29 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7BBDA7141E1 for ; Wed, 14 Feb 2007 05:33:08 -0800 (PST) Message-ID: <310604.1171459988504.JavaMail.jira@brutus> Date: Wed, 14 Feb 2007 05:33:08 -0800 (PST) From: "Leo Li (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-2940) [classlib][security]Class.forName("org.bouncycastle.jce.provider.BouncyCastleProvider"); fails while org.bouncycastle.jce.provider.BouncyCastleProvider is added as a security provider In-Reply-To: <23495160.1167901527495.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-2940?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12473091 ] Leo Li commented on HARMONY-2940: --------------------------------- Hi, Stepan: Thank you for pointing out that. In fact it is no business with security module but a problem of reentering JarFile.getInputStream(). Because of the caching mechanism adopted by URLClassloader, it will reenter the same JarFile.getInputStream() when the class is in a signed jar and the provider to verify the jar is given by the same class. However the JarFile.getInputStream() actually is not designed to have the capability to be reentered. Now, I have a plan to fix it. I will give a patch soon. Good luck, Leo > [classlib][security]Class.forName("org.bouncycastle.jce.provider.BouncyCastleProvider"); fails while org.bouncycastle.jce.provider.BouncyCastleProvider is added as a security provider > --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: HARMONY-2940 > URL: https://issues.apache.org/jira/browse/HARMONY-2940 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Leo Li > Assigned To: Stepan Mishura > Priority: Critical > > Here is a testcase: > public void test() > { > Class cls = Class.forName("org.bouncycastle.jce.provider.BouncyCastleProvider"); > } > Harmony fails. > After digging into it, I found that it is related with bcprov.jar has a certificate signed by the signature provided by itself. I tried to remove it signature and move it into the boot directory and it works. > So I recommend to put an unsigned bcprov.jar into the boot directory. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.