You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Simone Tripodi (JIRA)" <ji...@apache.org> on 2019/07/22 09:55:00 UTC

[jira] [Resolved] (SLING-8586) [cp2fm] "create service user" repoinit instruction throws javax.jcr.nodetype.ConstraintViolationException

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

Simone Tripodi resolved SLING-8586.
-----------------------------------
    Resolution: Fixed

> [cp2fm] "create service user" repoinit instruction throws javax.jcr.nodetype.ConstraintViolationException
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: SLING-8586
>                 URL: https://issues.apache.org/jira/browse/SLING-8586
>             Project: Sling
>          Issue Type: Bug
>          Components: Content-Package to Feature Model Converter
>            Reporter: Simone Tripodi
>            Assignee: Simone Tripodi
>            Priority: Critical
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> It happens that a {{create service user ... with path ...}} like the one below:
> {noformat}
> "create service user replication-user with path /home/users/system/communities"
> {noformat}
> Throws a {{javax.jcr.nodetype.ConstraintViolationException}}:
> {noformat}
> java.lang.RuntimeException: Session.save failed: javax.jcr.nodetype.ConstraintViolationException: OakConstraint0001: /home/users/system/communities[[rep:AuthorizableFolder]]: No matching definition found for child node replication-user with effective type [sling:Folder]
> {noformat}
> I am investigating if adding an extra sentence
> {noformat}
> create path (rep:AuthorizableFolder) /home/users/system/communities}}
> {noformat}
> before creating the user could fix the {{repoinit}} execution.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)