anitab-org / anitab-org/mentorship-backend

Bug : Race conditions in register endpoint.

Đang mở
#1,019 2 bình luận 0 reaction 1 người được giao Được @epicadk nhận Xem trên GitHub
Category: Coding Type: Bug
Ngôn ngữ chính
Python
Star
200
Fork
449
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

**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](https://anitab-org.zulipchat.com/#narrow/stream/222534-mentorship-system/topic/mentorship-backend/near/227497628)

**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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.