Currently the validateSingletonRelationshipReadResponse method in openidm/openidm-core/src/main/java/org/forgerock/openidm/managed/ReverseRelationshipValidator.java currently throws an error which includes the resource's _id and the field on which the error occurs but there is no insight into what object this field exists on.
We need to add a little more detail to that error message, preferably the full path to the object. The reason for this is the UI could be improved by giving the user a little more detail when relationship conflict error happens. This would be especially useful when adding multiple relationships and having one or more of them fail with validation errors. Currently there is a generic message that says "Conflict with Existing Relationship" which gives no help in determining which one failed. By adding the full path to the message the UI can use that info to query the object in question to get a nice human readable display so the user would be able to pinpoint which objects failed to be connected.