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-2940) [classlib][security]Class.forName("org.bouncycastle.jce.provider.BouncyCastleProvider"); fails while org.bouncycastle.jce.provider.BouncyCastleProvider is added as a security provider
Date Wed, 14 Feb 2007 13:33:08 GMT

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


Mime
View raw message