[
https://issues.apache.org/jira/browse/DERBY-7014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16666425#comment-16666425
]
Rick Hillegas commented on DERBY-7014:
--------------------------------------
Linking to DERBY-3547 because this problem was discovered while working on that
issue.
> ij requires excessive PropertyPermissions
> -----------------------------------------
>
> Key: DERBY-7014
> URL: https://issues.apache.org/jira/browse/DERBY-7014
> Project: Derby
> Issue Type: Bug
> Components: Tools
> Affects Versions: 10.15.0.0
> Reporter: Rick Hillegas
> Priority: Major
>
> The following broad permission...
> {noformat}
> permission java.util.PropertyPermission "*", "read,write";
> {noformat}
> ...must be granted to derbytools.jar because of the following stanza from
> initFromEnvironment() in ij.jj:
> {noformat}
> // load all protocols specified via properties
> //
> Properties p = AccessController.doPrivileged(new
> PrivilegedAction<Properties>() {
> public Properties run() {
> return System.getProperties();
> }
> });
> {noformat}
> We should not have to grant derbytools.jar the power to read and overwrite
> all system properties.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)