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

Java 2 security policy file examples don't work -- are missing a needed line

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 10.1.2.1
    • 10.1.3.1
    • Documentation
    • None

    Description

      These security policy file examples don't work as is:

      http://db.apache.org/derby/docs/dev/devguide/rdevcsecure871406.html
      http://db.apache.org/derby/docs/dev/devguide/rdevcsecure871422.html
      http://db.apache.org/derby/docs/dev/devguide/rdevcsecure871439.html

      Each example needs this additional line:

      permission java.io.FilePermission "${derby.system.home}","read";

      The email thread is here:

      http://mail-archives.apache.org/mod_mbox/db-derby-user/200511.mbox/%3c43704594.2090704@debrunners.com%3e

      To show one of the examples, here is the current text for Example 1:

      grant codeBase "file://f:/derby/lib/derby.jar" {
      permission java.lang.RuntimePermission "createClassLoader";
      permission java.util.PropertyPermission "derby.*", "read";
      permission java.io.FilePermission "${derby.system.home}${/}-", "read,write,delete";
      };

      It needs to be this instead:

      grant codeBase "file://f:/derby/lib/derby.jar" {
      permission java.lang.RuntimePermission "createClassLoader";
      permission java.util.PropertyPermission "derby.*", "read";
      permission java.io.FilePermission "${derby.system.home}","read";
      permission java.io.FilePermission "${derby.system.home}${/}-","read,write,delete";
      };

      Attachments

        1. derby701-2.diff
          7 kB
          Eric Radzinski
        2. derby701_html_files-2.zip
          6 kB
          Eric Radzinski
        3. derby701.diff
          5 kB
          Eric Radzinski
        4. derby701_html_files.zip
          4 kB
          Eric Radzinski

        Activity

          People

            Unassigned Unassigned
            jta Jean T. Anderson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: