[
https://issues.apache.org/jira/browse/OAK-1997?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chetan Mehrotra resolved OAK-1997.
----------------------------------
Resolution: Fixed
The exception now reads like below with http://svn.apache.org/r1614272
{noformat}
org.apache.jackrabbit.oak.api.CommitFailedException: OakConstraint0030:
Uniqueness constraint violated at path [/] for one of the property in [foo]
having value abc
at
org.apache.jackrabbit.oak.plugins.index.property.PropertyIndexEditor.leave(PropertyIndexEditor.java:282)
at
org.apache.jackrabbit.oak.spi.commit.EditorDiff.process(EditorDiff.java:56)
{noformat}
> 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)