You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Karl Pauls (Jira)" <ji...@apache.org> on 2021/01/20 14:56:02 UTC

[jira] [Assigned] (SLING-9957) Hardcoded list of restriction names in RepPolicyEntryHandler.RepPolicyParser

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

Karl Pauls reassigned SLING-9957:
---------------------------------

    Assignee: Angela Schreiber

> Hardcoded list of restriction names in RepPolicyEntryHandler.RepPolicyParser
> ----------------------------------------------------------------------------
>
>                 Key: SLING-9957
>                 URL: https://issues.apache.org/jira/browse/SLING-9957
>             Project: Sling
>          Issue Type: Bug
>          Components: Content-Package to Feature Model Converter
>            Reporter: Angela Schreiber
>            Assignee: Angela Schreiber
>            Priority: Major
>             Fix For: Content-Package to Feature Model Converter 1.0.26
>
>
> the code at
> https://github.com/apache/sling-org-apache-sling-feature-cpconverter/blob/master/src/main/java/org/apache/sling/feature/cpconverter/handlers/RepPolicyEntryHandler.java#L121
> hardcodes the names of the supported restrictions. while those listed are the restrictions currently supported by oak out of the box, oak allows for customization (see jackrabbit.apache.org/oak/docs/security/authorization/restriction.html) and the set of supported restrictions may also evolve in oak.
> therefore the list should not be hardcoded. if obtaining the list of supported restrictions from oak is not an option, it might be better to assume that all child-properties of the protected {{rep:restrictions}} (primary type {{rep:Restrictions}}) node below a given access control entry are actually restrictions and treat them accordingly.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)