Skip to content

fix(#444): scope export CSV to session-unique filename in prepareCSV/downloadCSV#446

Open
tejassinghbhati wants to merge 1 commit intoEAPD-DRB:mainfrom
tejassinghbhati:fix/444-shared-export-filename-clean
Open

fix(#444): scope export CSV to session-unique filename in prepareCSV/downloadCSV#446
tejassinghbhati wants to merge 1 commit intoEAPD-DRB:mainfrom
tejassinghbhati:fix/444-shared-export-filename-clean

Conversation

@tejassinghbhati
Copy link
Copy Markdown
Contributor

Linked issue: Closes #444

Existing related work reviewed:

Overlap assessment:

Why this PR should proceed:

Summary:

  • import uuid added to CaseRoute.py
  • prepareCSV generates a per-request unique filename (export_<uuid>.csv) and stores it in session['export_file']
  • downloadCSV reads session['export_file'] instead of the hardcoded path; falls back to export.csv for backward compatibility; returns 404 if the file doesn't exist instead of crashing

Validation:

Proposed track: Track: Stability

@github-actions github-actions Bot added the needs-intake-fix PR intake structure needs maintainer follow-up label Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-intake-fix PR intake structure needs maintainer follow-up

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Shared export.csv filename in prepareCSV/downloadCSV causes silent data corruption under concurrent use

1 participant