Chetan Mehrotra created OAK-1997:
------------------------------------
Summary: Improve the message in UniquenessConstraintViolation
exception to provide more details
Key: OAK-1997
URL: https://issues.apache.org/jira/browse/OAK-1997
Project: Jackrabbit Oak
Issue Type: Improvement
Components: core
Reporter: Chetan Mehrotra
Assignee: Chetan Mehrotra
Priority: Minor
Fix For: 1.1
Currently if there is a Uniqueness constraint violated then following exception
is logged
{noformat}
Caused by: org.apache.jackrabbit.oak.api.CommitFailedException:
OakConstraint0030: Uniqueness constraint violated for key
b172bdae-a94d-465e-be44-7be606dac458
at
org.apache.jackrabbit.oak.plugins.index.property.PropertyIndexEditor.leave(PropertyIndexEditor.java:280)
at
org.apache.jackrabbit.oak.spi.commit.VisibleEditor.leave(VisibleEditor.java:64)
at
org.apache.jackrabbit.oak.spi.commit.CompositeEditor.leave(CompositeEditor.java:74)
{noformat}
The exception message should be improved to provide more details like path and
propertyNames where the constraint failed
--
This message was sent by Atlassian JIRA
(v6.2#6252)