[ https://issues.apache.org/jira/browse/SLING-12237?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Konrad Windszus resolved SLING-12237. ------------------------------------- Resolution: Fixed Fixed in https://github.com/apache/sling-org-apache-sling-jcr-repoinit/commit/7dcdfa8c6ef967ed579703d8f75286357e6debcc. > Extend exception message for RepositoryInitializerFactory with config PID and > affected script/reference > ------------------------------------------------------------------------------------------------------- > > Key: SLING-12237 > URL: https://issues.apache.org/jira/browse/SLING-12237 > Project: Sling > Issue Type: Improvement > Components: Repoinit > Affects Versions: Repoinit JCR 1.1.46 > Reporter: Konrad Windszus > Assignee: Konrad Windszus > Priority: Major > Fix For: Repoinit JCR 1.1.48 > > > Currently an error in any of the repoinit scripts or reference just lead to > an exception which does not expose the configuration PID triggering the > exception, e.g. > {code} > javax.jcr.RepositoryException: Applying repoinit operation failed despite > retry; set loglevel to DEBUG to see all exceptions. Last exception message > was: Session.save failed: javax.jcr.nodetype.ConstraintViolationException: > OakConstraint0001: /var/groovyconsole[[nt:folder]]: No matching definition > found for child node audit with effective type [nt:unstructured] > at > org.apache.sling.jcr.repoinit.impl.RepositoryInitializerFactory.applyOperations(RepositoryInitializerFactory.java:176) > [org.apache.sling.jcr.repoinit:1.1.38] > {code} > As repo init scripts are contributed from many different source locations the > underlying configuration PID should be contained in the exception message as > well. In addition the index of the according script or the according > reference URL should be included. -- This message was sent by Atlassian Jira (v8.20.10#820010)