Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-8315

Enhance relationship validation error message to include the full object path not just the object's uuid

    XMLWordPrintable

    Details

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            krismy.alfaro Krismy Alfaro
            Reporter:
            huck.elliott Huck Elliott
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: