-
Notifications
You must be signed in to change notification settings - Fork 449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug : Race conditions in register endpoint. #1019
Labels
Category: Coding
Changes to code base or refactored code that doesn't fix a bug.
Type: Bug
Bug or Bug fixes.
Comments
epicadk
added
Status: Available
Issue was approved and available to claim or abandoned for over 3 days.
Category: Coding
Changes to code base or refactored code that doesn't fix a bug.
Type: Bug
Bug or Bug fixes.
labels
Feb 25, 2021
Can I work on this issue? |
Assigning you @epicadk |
vj-codes
removed
the
Status: Available
Issue was approved and available to claim or abandoned for over 3 days.
label
Feb 28, 2021
This was referenced Mar 1, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Category: Coding
Changes to code base or refactored code that doesn't fix a bug.
Type: Bug
Bug or Bug fixes.
Describe the bug
If two users send requests to the register endpoint at the same time and both have the same username/emailID then the backend will crash.
To Reproduce
Kind of hard to do this however it can be done programmatically as explained here
Expected behavior
The app should not crash and instead return an error saying that the username is already taken to one of the users and register the other successfully.
The text was updated successfully, but these errors were encountered: