[
https://issues.apache.org/jira/browse/SLING-8586?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16890035#comment-16890035
]
Simone Tripodi commented on SLING-8586:
---------------------------------------
https://github.com/apache/sling-org-apache-sling-feature-cpconverter/pull/13
merged
> [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)