-
Type:
Bug
-
Status: Resolved
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: 13.0.0, 13.5.0, 14.0.0
-
Fix Version/s: None
-
Component/s: rest
-
Labels:
-
Rank:1|hzkzlb:
-
Sprint:AM Sustaining Sprint 30
-
Epic Link:
-
Support Ticket IDs:
-
Verified Version/s:
Problem description
When creating a user via json/users/?_action=create, if the password doesn't meet the expected default 8 characters length then the response code is a 404.
To reproduce
Send the following curl request on an OOTB OpenAM:
curl --request POST --header "Content-Type: application/json" --header "iPlanetDirectoryPro: AQI...QAA*" --data '{ "username": "testuser", "userpassword": "123"}' http://openam.example.com:8080/OpenAM-14.0.0/json/users/?_action=create {"code":404,"reason":"Not Found","message":"Minimum password length is 8."}
Expected behaviour
The response code should be a 400 status.
- duplicates
-
OPENAM-9009 When using REST endpoint "json/users/?_action=create" with password policy violation, AM returns HTTP 400 "bad request", reason "Bad Request" , Message "Bad Request" rather than a more meaningful error message
-
- Resolved
-