Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
10.1.2.1
-
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:
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";
};