Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-5502

RestrictiveFilePermissionsTest and RecoveryTest fail with file permission errors on the OpenJDK 7 preview for Mac OS X

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.9.1.0
    • 10.9.1.0
    • Test
    • None
    • mac os x 10.7; OpenJDK Runtime Environment (build 1.7.0-ea-b213)
    • Normal
    • Security

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rhillegas Richard N. Hillegas
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: