db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rick Hillegas (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DERBY-5502) RestrictiveFilePermissionsTest and RecoveryTest fail with file permission errors on the OpenJDK 7 preview for Mac OS X
Date Mon, 14 Nov 2011 18:26:51 GMT
RestrictiveFilePermissionsTest and RecoveryTest fail with file permission errors on the OpenJDK
7 preview for Mac OS X
----------------------------------------------------------------------------------------------------------------------

                 Key: DERBY-5502
                 URL: https://issues.apache.org/jira/browse/DERBY-5502
             Project: Derby
          Issue Type: Bug
          Components: Test
    Affects Versions: 10.9.0.0
         Environment: mac os x 10.7; OpenJDK Runtime Environment (build 1.7.0-ea-b213)
            Reporter: Rick Hillegas


On my machine, RestrictiveFilePermissionsTest fails on Java 7. The test does not run any test
cases on Java 6. In addition, RecoveryTest fails on Java 7 although it passes cleanly on Java
6. The tests fail both when run standalone and when run in the full regression test suite.
These are the errors I see:

1) doTestCliServerIsRestrictive(org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest)java.security.AccessControlException:
access denied ("java.io.FilePermission" "<<ALL FILES>>" "execute")
	at java.security.AccessControlContext.checkPermission(AccessControlContext.java:366)
	at java.security.AccessController.checkPermission(AccessController.java:555)
	at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
	at java.lang.SecurityManager.checkExec(SecurityManager.java:799)
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1016)
	at java.lang.Runtime.exec(Runtime.java:615)
	at java.lang.Runtime.exec(Runtime.java:483)
	at org.apache.derbyTesting.junit.NetworkServerTestSetup$3.run(NetworkServerTestSetup.java:342)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.apache.derbyTesting.junit.NetworkServerTestSetup.startSeparateProcess(NetworkServerTestSetup.java:335)
	at org.apache.derbyTesting.junit.NetworkServerTestSetup.setUp(NetworkServerTestSetup.java:188)
	at junit.extensions.TestSetup$1.protect(TestSetup.java:20)
	at junit.extensions.TestSetup.run(TestSetup.java:25)
	at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)

FAILURES!!!
Tests run: 14,  Failures: 0,  Errors: 1

There was 1 error:
1) testBasicRecovery(org.apache.derbyTesting.functionTests.tests.store.RecoveryTest)java.security.AccessControlException:
access denied ("java.io.FilePermission" "<<ALL FILES>>" "execute")
	at java.security.AccessControlContext.checkPermission(AccessControlContext.java:366)
	at java.security.AccessController.checkPermission(AccessController.java:555)
	at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
	at java.lang.SecurityManager.checkExec(SecurityManager.java:799)
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1016)
	at java.lang.Runtime.exec(Runtime.java:615)
	at java.lang.Runtime.exec(Runtime.java:483)
	at org.apache.derbyTesting.junit.BaseTestCase$8.run(BaseTestCase.java:564)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.apache.derbyTesting.junit.BaseTestCase.execJavaCmd(BaseTestCase.java:560)
	at org.apache.derbyTesting.junit.BaseTestCase.assertExecJavaCmdAsExpected(BaseTestCase.java:510)
	at org.apache.derbyTesting.junit.BaseTestCase.assertLaunchedJUnitTestMethod(BaseTestCase.java:864)
	at org.apache.derbyTesting.functionTests.tests.store.RecoveryTest.testBasicRecovery(RecoveryTest.java:89)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:116)
	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
	at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
	at junit.extensions.TestSetup.run(TestSetup.java:25)
	at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)

FAILURES!!!
Tests run: 1,  Failures: 0,  Errors: 1




--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message