[jira] [Updated] (SLING-12237) Extend exception message for RepositoryInitializerFactory with config PID and affected script/reference

2024-01-22 Thread Konrad Windszus (Jira)


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

Konrad Windszus updated SLING-12237:

Description: 
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.

  was:
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 by many different suppliers 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.


> 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)


[jira] [Updated] (SLING-12237) Extend exception message for RepositoryInitializerFactory with config PID and affected script/reference

2024-01-22 Thread Konrad Windszus (Jira)


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

Konrad Windszus updated SLING-12237:

Description: 
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 by many different suppliers 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.

  was:
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 by many different suppliers the underlying 
configuration PID should be contained in the exception message as well.


> 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
>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 by many different suppliers 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)


[jira] [Updated] (SLING-12237) Extend exception message for RepositoryInitializerFactory with config PID and affected script/reference

2024-01-22 Thread Konrad Windszus (Jira)


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

Konrad Windszus updated SLING-12237:

Summary: Extend exception message for RepositoryInitializerFactory with 
config PID and affected script/reference  (was: Extend exception message for 
RepositoryInitializerFactory with config PID and script/reference)

> 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
>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 by many different suppliers the 
> underlying configuration PID should be contained in the exception message as 
> well.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)