You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Konrad Windszus (Jira)" <ji...@apache.org> on 2021/03/01 19:53:00 UTC

[jira] [Closed] (JCRVLT-497) NodeTypeValidator: Incorrect errors emitted for rep:Authorizable nodes

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

Konrad Windszus closed JCRVLT-497.
----------------------------------

> NodeTypeValidator: Incorrect errors emitted for rep:Authorizable nodes
> ----------------------------------------------------------------------
>
>                 Key: JCRVLT-497
>                 URL: https://issues.apache.org/jira/browse/JCRVLT-497
>             Project: Jackrabbit FileVault
>          Issue Type: Bug
>            Reporter: Konrad Windszus
>            Assignee: Konrad Windszus
>            Priority: Major
>             Fix For: 3.4.10
>
>
> The nodes containing {{rep:Authorizables}} are first detected as plain {{nt:folder}} and only afterwards being converted into the correct node type.
> The field {{isAuthenticationOrAuthorizationContext}} is never adjusted though once the correct node type is detected (https://github.com/apache/jackrabbit-filevault/blob/beb4a72adcf963c1da6ed9604c18b8b5b69ee57c/vault-validation/src/main/java/org/apache/jackrabbit/vault/validation/spi/impl/nodetype/NodeTypeValidator.java#L180). That leads to incorrect validation messages being emitted.
> For example for https://github.com/Netcentric/accesscontroltool/tree/2.7.1/accesscontroltool-content-package/src/main/jcr_root the following errors are being emitted
> {code}
> [ERROR] ValidationViolation: "jackrabbit-nodetypes: Node 'actool-service [nt:folder]' is not allowed as child of node with types [rep:AuthorizableFolder]: Node type does not allow arbitrary child nodes and does not allow this specific name and node type either!", filePath=jcr_root/home/users/system/actool/actool-service, nodePath=/home/users/system/actool/actool-service, line=7, column=6
> [ERROR] ValidationViolation: "jackrabbit-nodetypes: Property 'rep:authorizableId' [String] is not allowed in node with types [rep:SystemUser]: Property is protected!", filePath=jcr_root/home/users/system/actool/actool-service/.content.xml, nodePath=/home/users/system/actool/actool-service, line=7, column=6
> [ERROR] ValidationViolation: "jackrabbit-nodetypes: Property 'rep:principalName' [String] is not allowed in node with types [rep:SystemUser]: Property is protected!", filePath=jcr_root/home/users/system/actool/actool-service/.content.xml, nodePath=/home/users/system/actool/actool-service, line=7, column=6
> {code}
>  



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