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

PUT REST call to AD with LDAP adapter is interpreted as create instead of update

    Details

    • Sprint:
      OpenIDM Sprint 60
    • Story Points:
      2

      Description

      Issuing a REST call like

      curl -u openidm-admin:openidm-admin --request PUT --header "Content-Type: application/json" -d '

      {"title" : "Mr."}

      ' "http://localhost:8080/openidm/system/AD/account/%3CGUID%3Dd1bcb4daf9d8eb4083184a8253290b4f%3E?_prettyPrint=true"

      with an existing AD account will result in a failure as it is trying to perform a create instead of an update. It does work correctly if the extra arguments --header "If-Match : *" are passed.

      This contradicts the integrator's guide section E.4.3 that states that 'If no conditional header is specified, a default of If-Match: "*" is applied.' It is also inconsistent with the way it works with OpenDJ, for which it works as documented.

      Trying out the LDAP 1.4.1.0 adapter in 3.1.0 shows that the problem does not occur there, so it seems related to OpenIDM 4.0.0, not to the adapter.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jason.vincent jason vincent
                Reporter:
                matthias.grabiak Matthias Grabiak
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: