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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 10.2.1.6
    • 10.2.1.6
    • Services
    • 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.

      Attachments

        1. DERBY-623-1b.diff
          1 kB
          Kristian Waagan
        2. DERBY-623-1b.stat
          0.2 kB
          Kristian Waagan
        3. DERBY-623-1a.stat
          0.2 kB
          Kristian Waagan
        4. DERBY-623-1a.diff
          3 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

            kristwaa Kristian Waagan
            djd Daniel John Debrunner
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: