Uploaded image for project: 'OpenICF'
  1. OpenICF
  2. OPENICF-593

Ldap modify attributes exception does not provide enough details on cause

    Details

      Description

      We are using openidm.patch to update users in OpenDJ, whenever the updates fails because of an attribute restriction within OpenDJ (for instance when updating the password) we do not get the full error message back but just the following meaningless message:

      {
      "code": 400,
      "reason": "Bad Request",
      "message": "Attribute value conflicts with the attribute's schema definition on operation PATCH for system object: 642dcc2b-eb29-4c56-bdb9-234113bd3168",
      "detail": {}
      }

      It would be nice if the detail part actually contains the detailled information. I looked at the OpenICF connector code and it seems to me that if you update LdapUpdate.java line 428 from

      throw new org.identityconnectors.framework.common.exceptions.InvalidAttributeValueException(e.getCause());

      to
      throw new org.identityconnectors.framework.common.exceptions.InvalidAttributeValueException(message);

      that it would give the correct error message.

        Attachments

          Activity

            People

            • Assignee:
              gael Gael Allioux
              Reporter:
              mark.offutt Mark Offutt
              QA Assignee:
              Vojtěch Oczka
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: