Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-16378

PUT to /json/users/<userid> returns 400 if no changes are made to JSON

    XMLWordPrintable

    Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 6.5.2.3
    • None
    • rest
    • Rank:
      1|i01abr:

      Description

      Bug description

      If you GET /json/users/<userid> and then PUT the same JSON response, it fails with 
      Illegal arguments: One or more required arguments is null or empty which is confusing. If you make a small change to any attribute, the request is successful

      How to reproduce the issue

      1. GET /json/users/demo
      2. Copy JSON from response
      3. PUT /json/users/demo with JSON in the body of the request. Make no changes
      Expected behaviour
      200 OK
      Current behaviour
      400 Bad request

      Work around

      The XUI PUTs only a subset of the user data which if sent with no changes, works e.g. 

      {"cn":"demo","iplanet-am-user-success-url":[],"iplanet-am-user-auth-config":"[Empty]","sunIdentityMSISDNNumber":[],"postalAddress":[],"iplanet-am-user-failure-url":[],"sn":"demo","givenName":[],"employeeNumber":0,"mail":"demo@example.com","inetUserStatus":"Active","telephoneNumber":[]}

        Attachments

          Activity

            People

            Unassigned Unassigned
            aaron.haskins Aaron Haskins
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: