[
https://issues.apache.org/jira/browse/OAK-7530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16503084#comment-16503084
]
angela commented on OAK-7530:
-----------------------------
[~stillalex], looks good to me. maybe we should document somewhere that setting
up the /jcr:system node is considered the responsibility of a dedicated
repo-init and that subsequent repository initializers can rely on that node to
exist. if it doesn't those initializers are expected to fail fast... in other
words: if the system node doesn't exist the initializer should abort
immediately. wdyt?
> PrivilegeInitializer should not attempt to create jcr:system node
> -----------------------------------------------------------------
>
> Key: OAK-7530
> URL: https://issues.apache.org/jira/browse/OAK-7530
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: core, security
> Reporter: Alex Deparvu
> Assignee: Alex Deparvu
> Priority: Minor
>
> {{PrivilegeInitializer}} class should not create jcr:system node if it
> doesn't exist as this would disrupt the {{InitialContent}}'s work of creating
> the needed structure under this node [1]
> [0]
> https://github.com/apache/jackrabbit-oak/blob/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/privilege/PrivilegeInitializer.java#L57
> [1]
> https://github.com/apache/jackrabbit-oak/blob/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/InitialContent.java#L78
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)