You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Andreas Schaefer (Jira)" <ji...@apache.org> on 2019/12/16 22:37:00 UTC

[jira] [Updated] (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 ]

Andreas Schaefer updated SLING-8586:
------------------------------------
    Fix Version/s:     (was: Content-Package to Feature Model Converter 1.0.0)
                   Content-Package to Feature Model Converter 1.0.2

> [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
>    Affects Versions: Content-Package to Feature Model Converter 1.0.0
>            Reporter: Simone Tripodi
>            Assignee: Simone Tripodi
>            Priority: Critical
>             Fix For: Content-Package to Feature Model Converter 1.0.2
>
>          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
(v8.3.4#803005)