Skip to content

Bug : Race conditions in register endpoint.  #1019

Open
@epicadk

Description

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.

Metadata

Assignees

Labels

Category: CodingChanges to code base or refactored code that doesn't fix a bug.Type: BugBug or Bug fixes.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions