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 2019/04/30 12:50:00 UTC
[jira] [Commented] (OAK-8262) CompiledPermissionImpl returns wrong
type of TreePermission for child of permission store
[ https://issues.apache.org/jira/browse/OAK-8262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16830260#comment-16830260 ]
angela commented on OAK-8262:
-----------------------------
[~stillalex], proposed patch attached to fix this. the key problem is that i returned TreePermission.EMPTY for the internal type and subsequently the parent-type will no longer be properly determined as internal. introducing dedicated internal-tree-permission that returns the same as EMPTY (except for the childPermission) should IMO do the trick. wdyt?
> CompiledPermissionImpl returns wrong type of TreePermission for child of permission store
> ------------------------------------------------------------------------------------------
>
> Key: OAK-8262
> URL: https://issues.apache.org/jira/browse/OAK-8262
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: core, security
> Reporter: angela
> Assignee: angela
> Priority: Major
> Attachments: OAK-8262.patch
>
>
> while working on OAK-8240 i noticed that {{CompiledPermissionImpl}} will return the wrong type of {{TreePermission}} for subtrees of the permission storage as it wrongly computes the tree type to be DEFAULT instead of INTERNAL.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)