Skip to main content

Duplicate User Creation via API Shows Incorrect Message

Duplicate User Creation via API Shows Incorrect Message

Description

When running this API learn/api/public/v1/users in POST method to create a duplicated account, the error message does not correspond to the one from the documentation.

Steps to Replicate

  1. Log into Blackboard Learn as an Administrator

  2. Register a REST API in <server> to POST the API there

  3. Use Postman and run the API with this JSON:
    ​

    {

    "name": {
    ​

    "given": "test_support",
    ​

    "family": "test_support"
    ​

    },
    ​

    "password": "test_support2",
    ​

    "userName": "test_support2"
    ​

    }

  4. See that the user is created successfully

  5. Now, run it again with the same JSON

Observed Behavior:

Wrong Error message logged

Expected Behavior:

This error message is logged:

{
​

"status": 400,
​

"message": "Failed to create user!:A database error occurred.:"
​

}

Affected Versions

  • Learn 4000.12.0

  • Learn 4000.15.0

  • Learn 4000.17.0

Target Release

Future Reference

Did this answer your question?