harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Ivanov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-4184) [classlib][security]org.apache.harmony.security.fortress.DefaultPolicy fails to grant Permissions according to policy file to classes in extension directory.
Date Tue, 19 Jun 2007 10:53:26 GMT

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

Vladimir Ivanov commented on HARMONY-4184:
------------------------------------------

Seems, that after this issue was committed the classlib test org.apache.harmony.security.tests.java.security.PolicyTest
failed on all platforms:
Test:  testPropertyExpansion 
Class:  org.apache.harmony.security.tests.java.security.PolicyTest 
 junit.framework.AssertionFailedError: Failed to find SecurityPermission for codeSource=/11111/*,
codeBase=/11111/-   
 at org.apache.harmony.security.tests.java.security.PolicyTest.assertCodeBasePropertyExpansion(PolicyTest.java:251)
  
 at org.apache.harmony.security.tests.java.security.PolicyTest.testPropertyExpansion(PolicyTest.java:207)
  
 at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java) 
 
 
Could you recheck it?

 thanks, Vladimir

> [classlib][security]org.apache.harmony.security.fortress.DefaultPolicy fails to grant
Permissions according to policy file to classes in extension directory.
> -------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-4184
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4184
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Leo Li
>            Assignee: Leo Li
>
> Here is a testcase:
>         Class cls = Class.forName("org.bouncycastle.jce.provider.ProviderUtil");    
   //Replace the class in RI's extension directory.
>         ProtectionDomain pd = cls.getProtectionDomain();
>         Permission perm = new AllPermission();
>         assertTrue(pd.implies(perm));
> 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