Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Race Condition in Access Code Generation for Quiz

Aperta
#140 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@chetna123-ch ci sta già lavorando.

Dal 19/10/2026.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
express, postgresql, typescript
Ambito
backend, databases

Direzione di ricerca

Start at the endpoint named in the issue, /apps/http-server/routes/api/v1/quizzes/:quizId/generate-access-code, and trace how it generates and stores access codes. Check the database schema and existing tests for uniqueness constraints or collision handling. Done means concurrent requests cannot assign duplicate codes and collisions are handled safely; the payload does not name a test file.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Backend first issue good first issue help wanted

📍 Location
/apps/http-server/routes/api/v1/quizzes/:quizId/generate-access-code

Problem Description

The current implementation of the access code generation endpoint is vulnerable to a race condition when multiple users request a code simultaneously.

Scenario:
User A and User B send a request at the same time
Both requests execute generateCode()
Both receive the same generated code (e.g., AC123A)
The system assigns duplicate access codes

This leads to non-unique access codes, which breaks the assumption that each quiz session should have a unique join code.

Expected Behavior
  • Each generated access code must be globally unique
  • Concurrent requests should never result in duplicate codes
  • The system should handle collisions gracefully (e.g., retry mechanism)
Lingua principale
TypeScript
Stelle
21
Fork
7
Merge medio
3h 39m
PR unite (30g)
16

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di TheCodeHeist-Coder/Rexial

Tutte le issue di TheCodeHeist-Coder/Rexial

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.