Derby
  1. Derby
  2. DERBY-5502

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 10.9.1.0
    • Fix Version/s: 10.9.1.0
    • Component/s: Test
    • Labels:
      None
    • Environment:
      mac os x 10.7; OpenJDK Runtime Environment (build 1.7.0-ea-b213)
    • Urgency:
      Normal
    • Bug behavior facts:
      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

        Issue Links

          Activity

          Rick Hillegas created issue -
          Knut Anders Hatlen made changes -
          Field Original Value New Value
          Link This issue is broken by DERBY-5490 [ DERBY-5490 ]
          Hide
          Rick Hillegas added a comment -

          Closing this issue. Reverting the work on derby-5490 has fixed this problem.

          Show
          Rick Hillegas added a comment - Closing this issue. Reverting the work on derby-5490 has fixed this problem.
          Rick Hillegas made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Fix Version/s 10.9.0.0 [ 12316344 ]
          Resolution Fixed [ 1 ]
          Gavin made changes -
          Workflow jira [ 12642068 ] Default workflow, editable Closed status [ 12796797 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Rick Hillegas
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development