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

REST: User from URL is created, when I provide different name in URL and request body

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 12.0.0, 12.0.1, 13.0.0
    • Fix Version/s: 12.0.3, 13.0.0
    • Component/s: rest
    • Labels:
    • Environment:
      OpenAM 13.0.0-SNAPSHOT Build 12415 (2015-February-10 02:59)
       OpenAM 12.0.0 Build 11961 (2014-December-17 21:16)
    • Sprint:
      Sprint 79 - Team Newton, Sustaining Sprint 12

      Description

      REST: User from URL is created, when I provide different name in URL and request body

      STEPS TO REPRODUCE:
      1.) Default installation of AM
      2.) Make request with different user name in URL and body

      curl -X PUT -H "iPlanetDirectoryPro:<ADMIN TOKEN>" -H "Content-Type:application/json" -H "If-None-Match:*" --data '{"username": "testUser", "userPassword": "secret12"}' "http://riso-centos7.test.forgerock.com:8080/openam/json/users/testUserBad?_prettyPrint=true"
      

      Response:

      {
        "code" : 400,
        "reason" : "Bad Request",
        "message" : "id in path does not match id in request body"
      }
      

      3.) Check if both users(testUserBad & testUser) were not created
      Observed Result
      User testUserBad (from URL) was creted
      Expected result:
      Users were not created

        Attachments

          Activity

            People

            • Assignee:
              quentin.castel Quentin CASTEL [X] (Inactive)
              Reporter:
              richard.hruza Richard Hruza
              QA Assignee:
              Richard Hruza
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: