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 "Michael Dürig (JIRA)" <ji...@apache.org> on 2013/02/27 15:13:12 UTC

[jira] [Resolved] (OAK-251) CommitEditor is global to ContentRepository instance

     [ https://issues.apache.org/jira/browse/OAK-251?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Dürig resolved OAK-251.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 0.7

Fixed at revision 1374342
                
> CommitEditor is global to ContentRepository instance
> ----------------------------------------------------
>
>                 Key: OAK-251
>                 URL: https://issues.apache.org/jira/browse/OAK-251
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core
>            Reporter: angela
>             Fix For: 0.7
>
>
> the CommitEditor (and thus the complete commit validation) is currently
> defined globally for the ContentRepository:
>    public ContentRepositoryImpl(MicroKernel microKernel, QueryIndexProvider indexProvider,
>             CommitEditor commitEditor) {
>         nodeStore = new KernelNodeStore(microKernel);
>         nodeStore.setEditor(commitEditor);
> while this might work for hardcoded editors/validators this doesn't work
> for those parts of the commit validation process that are depending on
> the content session (think of permission checks) or require a 
> content session for execution (access to value factory, query engine etc.)
> if we want to adapt the validator concept for all kinds of commit 
> validation this issue needs to be addressed.

--
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