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

Creating a managed object with relationship property using string fails with internal server error and status 500

    XMLWordPrintable

    Details

      Description

      creating managed object with relationship property using string (i.e manager with value "managed/user/boss" instead of "

      {"_ref":"managed/user/boss"}

      ) fails with internal server error and status 500.
      We should get an explicit message and a 400 status code.

      curl --header "X-OpenIDM-Username: openidm-admin" --header "X-OpenIDM-Password: openidm-admin" --header "If-None-Match: *" --header "Content-Type: application/json" --request PUT --data '{"userName":"bill","givenName":"bill","sn":"doe","telephoneNumber":"12345678","active":"true","mail":"bill@door.com","password":"Th3Password","manager":"managed/user/boss"}' http://localhost:8080/openidm/managed/user/bill  | jq '.'
      {
        "code": 500,
        "reason": "Internal Server Error",
        "message": "Internal Server Error"
      }
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              chad.kienle chad.kienle
              Reporter:
              laurent.bristiel Laurent Bristiel [X] (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: