Derby
  1. Derby
  2. DERBY-623

Derby monitor accesses two system properties without using a privileged block when built sane=true

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 10.2.1.6
    • Fix Version/s: 10.2.1.6
    • Component/s: Services
    • Labels:
      None

      Description

      When built with sane=true and testing with the jars these permissions are required to be granted all the way up the stack, currently this means for the tests granting them to the network server jar.

      permission java.util.PropertyPermission "derby.monitor.verbose", "read";
      permission java.util.PropertyPermission "derby.debug.*", "read";

      The engine contains code to read system properties using privileged blocks, this should be used by the monitor.

      1. DERBY-623-1a.diff
        3 kB
        Kristian Waagan
      2. DERBY-623-1a.stat
        0.2 kB
        Kristian Waagan
      3. DERBY-623-1b.diff
        1 kB
        Kristian Waagan
      4. DERBY-623-1b.stat
        0.2 kB
        Kristian Waagan
      5. DERBY-623-2b-javadoc.diff
        3 kB
        Kristian Waagan
      6. DERBY-623-2b-javadoc.stat
        0.2 kB
        Kristian Waagan

        Activity

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development