[
http://issues.apache.org/jira/browse/DERBY-1785?page=comments#action_12433254 ]
Sunitha Kambhampati commented on DERBY-1785:
--------------------------------------------
The below 3 tests failed with java.security.AccessControlException on a testrun
with insane jars on 09/01 with wctme5.7 Just adding the diffs here . jars -
10.3.0.0 alpha - (439522)
derbyall/derbyall.fail:lang/_Suite.junit
derbyall/derbyall.fail:jdbcapi/_Suite.junit
derbyall/storeall/storeall.fail:store/BootAllTest.junit
********* Diff file derbyall/derbylang/_Suite.diff
*** Start: _Suite jdk1.3.1 subset - 2.2 derbyall:derbylang 2006-09-03 11:25:02
***
0 add
> .EEEEEEEE
> There were 8 errors:
> 1)
> case(org.apache.derbyTesting.functionTests.tests.lang.LangScripts)java.security.AccessControlException:
> Access denied (java.io.FilePermission fail\Embedded\LangScripts\case read)
> 2)
> case(org.apache.derbyTesting.functionTests.tests.lang.LangScripts)java.security.AccessControlException:
> Access denied (java.lang.RuntimePermission createClassLoader )
> 3)
> constantExpression(org.apache.derbyTesting.functionTests.tests.lang.LangScripts)java.security.AccessControlException:
> Access denied (java.lang.RuntimePermission createClassLoader )
> 4)
> bit2(org.apache.derbyTesting.functionTests.tests.lang.LangScripts)java.security.AccessControlException:
> Access denied (java.lang.RuntimePermission createClassLoader )
> 5)
> derived(org.apache.derbyTesting.functionTests.tests.lang.LangScripts)java.security.AccessControlException:
> Access denied (java.lang.RuntimePermission createClassLoader )
> 6)
> arithmetic(org.apache.derbyTesting.functionTests.tests.lang.LangScripts)java.security.AccessControlException:
> Access denied (java.lang.RuntimePermission createClassLoader )
> 7)
> depend(org.apache.derbyTesting.functionTests.tests.lang.LangScripts)java.security.AccessControlException:
> Access denied (java.lang.RuntimePermission createClassLoader )
> 8)
> union(org.apache.derbyTesting.functionTests.tests.lang.LangScripts)java.security.AccessControlException:
> Access denied (java.lang.RuntimePermission createClassLoader )
> FAILURES!!!
> Tests run: 1, Failures: 0, Errors: 8
Test Failed.
--------------------------------------
********* Diff file derbyall/storeall/storemore/BootAllTest.diff
*** Start: BootAllTest jdk1.3.1 subset - 2.2 storeall:storemore 2006-09-03
11:42:49 ***
0 add
> .E
> There was 1 error:
> 1)
> testSettingBootAllPropertyWithHomePropertySet(org.apache.derbyTesting.functionTests.tests.store.BootAllTest)java.lang.ExceptionInInitializerError:
> java.security.AccessControlException: Access denied
> (java.util.PropertyPermission jdbc.drivers read)
> FAILURES!!!
> Tests run: 1, Failures: 0, Errors: 1
Test Failed.
*** End: BootAllTest jdk1.3.1 subset - 2.2 storeall:storemore 2006-09-03
11:42:49 ***
-------------------------------------
********* Diff file derbyall/derbylang/GroupByExpressionTest.diff
*** Start: GroupByExpressionTest jdk1.3.1 subset - 2.2 derbyall:derbylang
2006-09-03 10:39:18 ***
0 add
> .E.E.E.E.E.EE
> There were 7 errors:
> 1)
> testSimpleExpressions(org.apache.derbyTesting.functionTests.tests.lang.GroupByExpressionTest)java.security.AccessControlException:
> Access denied (java.lang.RuntimePermission createClassLoader )
> 2)
> testSubSelect(org.apache.derbyTesting.functionTests.tests.lang.GroupByExpressionTest)java.security.AccessControlException:
> Access denied (java.util.PropertyPermission java.security.policy read)
> 3)
> testMiscExpressions(org.apache.derbyTesting.functionTests.tests.lang.GroupByExpressionTest)java.security.AccessControlException:
> Access denied (java.util.PropertyPermission java.security.policy read)
> 4)
> testExtractOperator(org.apache.derbyTesting.functionTests.tests.lang.GroupByExpressionTest)java.security.AccessControlException:
> Access denied (java.util.PropertyPermission java.security.policy read)
> 5)
> testDuplicateColumns(org.apache.derbyTesting.functionTests.tests.lang.GroupByExpressionTest)java.security.AccessControlException:
> Access denied (java.util.PropertyPermission java.security.policy read)
> 6)
> testNegative(org.apache.derbyTesting.functionTests.tests.lang.GroupByExpressionTest)java.security.AccessControlException:
> Access denied (java.util.PropertyPermission java.security.policy read)
> 7) [EMAIL PROTECTED]: Access denied (java.io.FilePermission
> C:\jartest\JarResults.2006-09-01\wctme5.7_derbyall\derbyall\derbylang\GroupByExpressionTest\wombat\seg0\c3c0.dat
> read)
> FAILURES!!!
> Tests run: 6, Failures: 0, Errors: 7
Test Failed.
> junit tests fail with permission access problems when run with j9 jvms
> ----------------------------------------------------------------------
>
> Key: DERBY-1785
> URL: http://issues.apache.org/jira/browse/DERBY-1785
> Project: Derby
> Issue Type: Test
> Components: Test
> Affects Versions: 10.2.1.0, 10.3.0.0
> Environment: using ibm's j9 jvm as available with wssd5.6 or wctme5.7
> (jcl:Max or jcl:foundation configuration)
> Reporter: Myrna van Lunteren
> Priority: Minor
> Fix For: 10.2.2.0, 10.3.0.0
>
>
> The junit tests have been made to run with security manager.
> Until now, using the org.apache.derbyTesting.functionTests.harness classes,
> there was exception logic that stopped the j9 jvms from running with security
> manager, but that's now changed for the junit tests.
> For instance, the test store/bootAllTest.junit fails with the following error:
> There was 1 error:
> 1)
> testSettingBootAllPropertyWithHomePropertySet(org.apache.derbyTesting.functionTests.tests.store.BootAllTest)java.security.AccessControlException:
> Access denied (java.util.PropertyPermission framework read)
> at
> java.security.AccessController.checkPermission(AccessController.java:74)
> at java.lang.SecurityManager.checkPermission(SecurityManager.java:612)
> at
> java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:366)
> at java.lang.System.getProperty(System.java:319)
> at java.lang.System.getProperty(System.java:301)
> at
> org.apache.derbyTesting.functionTests.util.TestUtil$1.run(TestUtil.java:177)
> at
> java.security.AccessController.doPrivileged(AccessController.java:147)
> at
> org.apache.derbyTesting.functionTests.util.TestUtil.getFramework(TestUtil.java:174)
> at
> org.apache.derbyTesting.functionTests.util.TestUtil.getDataSourcePrefix(TestUtil.java:391)
> at
> org.apache.derbyTesting.functionTests.util.TestUtil.getSimpleDataSource(TestUtil.java:330)
> at
> org.apache.derbyTesting.functionTests.util.TestUtil.getDataSource(TestUtil.java:324)
> at
> org.apache.derbyTesting.functionTests.util.TestDataSourceFactory.getDataSource(TestDataSourceFactory.java:47)
> at
> org.apache.derbyTesting.junit.TestConfiguration.openConnection(TestConfiguration.java:296)
> at
> org.apache.derbyTesting.junit.BaseJDBCTestCase.openConnection(BaseJDBCTestCase.java:197)
> at
> org.apache.derbyTesting.functionTests.tests.store.BootAllTest.setUp(BootAllTest.java:58)
> at
> org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:76)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira