[
https://issues.apache.org/jira/browse/OAK-2109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14153167#comment-14153167
]
angela commented on OAK-2109:
-----------------------------
well... afaik the permission provider on the session delegate is a different
instance than the one on the root.... or at least it used to be a different
one. so calling refresh on the root will not refresh the other instance....
maybe it would make sense to keep the same instance here... but doing so would
IMO require some refactoring and reconsideration on how oak API works with the
additional features and how they can be obtained from a given Oak API object.
> PermissionProvider#refresh called twice from the SessionDelegate
> ----------------------------------------------------------------
>
> Key: OAK-2109
> URL: https://issues.apache.org/jira/browse/OAK-2109
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: jcr
> Reporter: Alex Parvulescu
> Priority: Minor
>
> The SessionDelegate#refresh call includes a _permissionProvider.refresh()_
> call [0], but this is already called via the root instance on both cases
> root#rebase and root#refresh.
> [0]
> https://github.com/apache/jackrabbit-oak/blob/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/delegate/SessionDelegate.java#L497
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)