jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "angela (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (OAK-8270) Add variant of PermissionUtil.getReadOnlyTree that never returns null
Date Wed, 24 Apr 2019 12:41:00 GMT

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

angela resolved OAK-8270.
-------------------------
       Resolution: Fixed
    Fix Version/s: 1.14.0

Committed revision 1858042.


> Add variant of PermissionUtil.getReadOnlyTree that never returns null
> ---------------------------------------------------------------------
>
>                 Key: OAK-8270
>                 URL: https://issues.apache.org/jira/browse/OAK-8270
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: core, security
>            Reporter: angela
>            Assignee: angela
>            Priority: Major
>             Fix For: 1.14.0
>
>         Attachments: OAK-8270.patch
>
>
> the current implementation of {{PermissionUtil.getReadOnlyTree}} may have a null tree
passed and will in this case return {{null}}, which is not suited for those parts of the permission
evaluation where the {{Tree}} cannot be null and a non-null return-value is therefore expected.
> [~stillalex], i would therefore suggest to rename the existing method to {{getReadOnlyTreeOrNull}}
and add a variant that never returns null. see attached patch.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message