Return proper error while failing to update a User's profile #84
Labels
Category: Coding
Changes to code base or refactored code that doesn't fix a bug.
Program: GSOC
Related to work completed during the Google Summer of Code Program.
Type: Bug
Bug or Bug fixes.
Description
As reported in issue #83, when a User tries to update its username to an already existing one, the server responds with 500 - Internal Server Error. This happens because the Database model is aware that the username should be unique, hence it fails at saving the User new data.
This will require extra checks in DAO function that updates the User profile.
Acceptance Criteria
Update
Definition of Done
gsoc18-code
branch.Estimation
1 hours
The text was updated successfully, but these errors were encountered: