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 "Jukka Zitting (JIRA)" <ji...@apache.org> on 2013/09/19 22:37:53 UTC

[jira] [Created] (OAK-1028) Pass Subject directly to the permission validator

Jukka Zitting created OAK-1028:
----------------------------------

             Summary: Pass Subject directly to the permission validator
                 Key: OAK-1028
                 URL: https://issues.apache.org/jira/browse/OAK-1028
             Project: Jackrabbit Oak
          Issue Type: Improvement
          Components: core
            Reporter: Jukka Zitting
            Assignee: Jukka Zitting
            Priority: Minor


Currently we're using the JAAS AccessContext mechanism to pass the current Subject to the permission validator. That solution was used to avoid having to pass extra arguments along with the change set through the whole stack.

Since then however we introduced the mechanism by which extra commit hooks can be associated with individual commits, and we already use that mechanism to pass the workspace name to the permission validator.

We could use the same thing also for the Subject, and thus avoid the more complex ThreadLocal-based AccessContext setup.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira