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

10.3.1.0 / 1.1.0 Derby eclipse plugin gives security error referring to user.dir read permission because derby.system.home is set to '.'

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.3.1.4, 10.4.1.3
    • Fix Version/s: 10.3.1.4
    • Component/s: Eclipse Plug-in
    • Labels:
      None
    • Environment:
      eclipse 3.2.1 with derby 10.3.1.0 core plugin, ui and doc plugin 1.1.0.
    • Urgency:
      Normal
    • Issue & fix info:
      Release Note Needed
    • Bug behavior facts:
      Regression

      Description

      The Derby nature sets by default -Dderby.system.home=. (set in plugins/eclipse/org.apache.derby.ui/src/org/apache/derby/ui/properties/DerbyProperties.java and checked in plugins/eclipse/org.apache.derby.ui/src/org/apache/derby/uitl/DerbyServerUtils.java)
      With the default security policy, however, such a setting for ij & NetworkServerControl results in a security error in ij.
      (See stack in thread: http://www.nabble.com/10.3.1.0b-eclipse-plugin---default-security-tf4030218.html)

      It's possible this is a bug in itself...
      One work around is to add the following permission to the default policy file:
      permission java.util.PropertyPermission "user.dir", "read";

      Another solution is to not set the derby.system.home to anything by default, and if it's not set to anything, not pass on -Dderby.system.home= to the networkserver process (specifying -Dderby.system.home= without a value fails to start networkserver).
      This would mean increasing the version of the plugins. To 1.1.1?

      Yet another thing would be to adjust the plugin to handle adjusting the security policy...

        Attachments

        1. derby-2908-patchDefaultPolicy-01.diff
          1 kB
          Rick Hillegas
        2. DERBY-2908_plugin111.stat
          2 kB
          Myrna van Lunteren
        3. DERBY-2908_plugin111.diff
          4 kB
          Myrna van Lunteren
        4. derby_ecplipse_plugins_1.1.1_2908.zip
          857 kB
          Myrna van Lunteren

          Issue Links

            Activity

              People

              • Assignee:
                rhillegas Rick Hillegas
                Reporter:
                myrna Myrna van Lunteren
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: