-
Type:
Bug
-
Status: Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 12.0.0, 12.0.1, 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)
-
Target Version/s:
-
Sprint:Sprint 79 - Team Newton, Sustaining Sprint 12
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