[
https://issues.apache.org/jira/browse/DERBY-6717?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14115001#comment-14115001
]
ASF subversion and git services commented on DERBY-6717:
--------------------------------------------------------
Commit 1621257 from [~knutanders] in branch 'code/trunk'
[ https://svn.apache.org/r1621257 ]
DERBY-6717: Policies with multiple SystemPermissions are not handled well
Override newPermissionCollection() and return an instance that is able
to distinguish between SystemPermissions with the same name and
different actions. The default implementation in BasicPermission only
considers the name of the permission.
> Policies with multiple SystemPermissions are not handled well
> -------------------------------------------------------------
>
> Key: DERBY-6717
> URL: https://issues.apache.org/jira/browse/DERBY-6717
> Project: Derby
> Issue Type: Bug
> Components: Services
> Affects Versions: 10.11.1.1
> Reporter: Knut Anders Hatlen
> Assignee: Knut Anders Hatlen
> Attachments: d6717-1a.diff
>
>
> Rick noted in DERBY-6648 that if you wanted to grant both
> SystemPermission("engine", "monitor") and SystemPermission("engine",
> "usederbyinternals") to a code base, the following would work:
> permission org.apache.derby.security.SystemPermission "engine",
> "monitor,usederbyinternals";
> However, the following does not work:
> permission org.apache.derby.security.SystemPermission "engine",
> "usederbyinternals";
> permission org.apache.derby.security.SystemPermission "engine", "monitor";
--
This message was sent by Atlassian JIRA
(v6.2#6252)