Details

    • Type: Sub-task Sub-task
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.3.1.4
    • Component/s: Services
    • Labels:
      None

      Description

      Would change the fix for DERBY-537) so that's why it is a sub-task.
      Use of the standard class loader would reduce security concerns and allow jars stored in the database to take advantage of standard features such as package sealing.

        Issue Links

          Activity

          Daniel John Debrunner created issue -
          Daniel John Debrunner made changes -
          Field Original Value New Value
          Link This issue relates to DERBY-552 [ DERBY-552 ]
          Daniel John Debrunner made changes -
          Link This issue relates to DERBY-553 [ DERBY-553 ]
          Mike Matrigali made changes -
          Component/s Services [ 11415 ]
          Hide
          Daniel John Debrunner added a comment -

          Possible blocks DERBY-538, during some tests with my changes for 538 backups are failing due to the JarClassLoader keeping the jar file open of the shutdown database. So something is keeping a reference to database objects, haven't investigated it yet.

          Show
          Daniel John Debrunner added a comment - Possible blocks DERBY-538 , during some tests with my changes for 538 backups are failing due to the JarClassLoader keeping the jar file open of the shutdown database. So something is keeping a reference to database objects, haven't investigated it yet.
          Daniel John Debrunner made changes -
          Link This issue is blocked by DERBY-594 [ DERBY-594 ]
          Daniel John Debrunner made changes -
          Link This issue is blocked by DERBY-594 [ DERBY-594 ]
          Hide
          Daniel John Debrunner added a comment -

          Java bug 4950148 means that the closing of the jar file opened by URClassLoader is delayed until that object's GC, which can cause issues for tests which try to cleanup after a database shutdown.

          http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4950148

          Seem to hit this bug if I use this class loader, also seen in DatabaseClassLoadingTest for the testDatabaseInClasspath() which uses URLClassLoader. Once the test is complete and the database shutdown, the jar file cannot be removed from the file system on windows. Need to inviestigate more as to what is going on.

          Show
          Daniel John Debrunner added a comment - Java bug 4950148 means that the closing of the jar file opened by URClassLoader is delayed until that object's GC, which can cause issues for tests which try to cleanup after a database shutdown. http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4950148 Seem to hit this bug if I use this class loader, also seen in DatabaseClassLoadingTest for the testDatabaseInClasspath() which uses URLClassLoader. Once the test is complete and the database shutdown, the jar file cannot be removed from the file system on windows. Need to inviestigate more as to what is going on.
          Hide
          Daniel John Debrunner added a comment -

          Due to issues with the standard URLClassLoader I decided to continue with Derby's own JarLoader but extend it from SecureClassLoader.
          This then will allow Derby's class loader to implement features such as package sealing.
          Commit 543524 switched the parent class. Believe there is no more work to do under this issue.
          Sealing and other security features can be added separately.

          Show
          Daniel John Debrunner added a comment - Due to issues with the standard URLClassLoader I decided to continue with Derby's own JarLoader but extend it from SecureClassLoader. This then will allow Derby's class loader to implement features such as package sealing. Commit 543524 switched the parent class. Believe there is no more work to do under this issue. Sealing and other security features can be added separately.
          Daniel John Debrunner made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]
          Fix Version/s 10.3.0.0 [ 12310800 ]
          Gavin made changes -
          Workflow jira [ 12323773 ] Default workflow, editable Closed status [ 12798400 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Closed Closed
          645d 14h 22m 1 Daniel John Debrunner 01/Jun/07 19:23

            People

            • Assignee:
              Daniel John Debrunner
              Reporter:
              Daniel John Debrunner
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development