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

Creating a user via json/users that does not meet password requirements results in 404 status

    Details

    • 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:
    • Support Ticket IDs:

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                quentin.castel Quentin CASTEL [X] (Inactive)
                Reporter:
                andy.itter Andy Itter
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: