You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Alexander Klimetschek (JIRA)" <ji...@apache.org> on 2016/11/28 23:08:58 UTC
[jira] [Commented] (OAK-1997) Improve the message in
UniquenessConstraintViolation exception to provide more details
[ https://issues.apache.org/jira/browse/OAK-1997?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15703439#comment-15703439 ]
Alexander Klimetschek commented on OAK-1997:
--------------------------------------------
Unfortunately, the path is always the root and does not indicate where the properties with the duplicated value are. Created OAK-5173.
> 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.0.4, 1.1.0
>
>
> 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.3.4#6332)