You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "angela (JIRA)" <ji...@apache.org> on 2017/05/02 14:18:04 UTC

[jira] [Created] (OAK-6151) Minor bugs in AccessControlImporter

angela created OAK-6151:
---------------------------

             Summary: Minor bugs in AccessControlImporter
                 Key: OAK-6151
                 URL: https://issues.apache.org/jira/browse/OAK-6151
             Project: Jackrabbit Oak
          Issue Type: Bug
          Components: core
            Reporter: angela
            Assignee: angela
            Priority: Minor


while working on OAK-5882 (i.e. writing tests for {{AccessControlImporter}}) i noticed a few minor bugs:

- {{init}}: should check for {{Session}} implementing {{JackrabbitSession}}
- {{MutableEntry.setPrincipal}}: for consistency with the rest of the ac-mgt code this should throw {{javax.jcr.security.AccessControlException}} instead of {{java.security.AccessControlException}}
- {{MutableEntry}}: potential NPE for privileges in case of an incomplete ACE. should create a empty list right away and then leave the handling of the empty priv-array to the {{acl.addEntry}} call in {{applyTo}}, which by default with throw {{AccessControlException}}.

[~alexparvulescu], fyi



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)