Skip to content

fix(filler): replace timestamp filename with uuid4 to prevent race condition#202

Open
Pbhacks wants to merge 1 commit intofireform-core:mainfrom
Pbhacks:fix/issue-198-uuid-filename
Open

fix(filler): replace timestamp filename with uuid4 to prevent race condition#202
Pbhacks wants to merge 1 commit intofireform-core:mainfrom
Pbhacks:fix/issue-198-uuid-filename

Conversation

@Pbhacks
Copy link

@Pbhacks Pbhacks commented Mar 8, 2026

Resolves #198

The output PDF filename was generated using datetime.now().strftime('%Y%m%d_%H%M%S') which has only 1-second resolution. Two concurrent requests in the same second produced identical output paths, causing one to silently overwrite the other.

Replaced with uuid4() to guarantee globally unique filenames regardless of timing

…ndition

Resolves fireform-core#198

The output PDF filename was generated using datetime.now().strftime('%Y%m%d_%H%M%S')
which has only 1-second resolution. Two concurrent requests in the same second
produced identical output paths, causing one to silently overwrite the other.

Replaced with uuid4() to guarantee globally unique filenames regardless of timing.
Copilot AI review requested due to automatic review settings March 8, 2026 12:57
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a race condition in the PDF filler by changing how filled PDF output filenames are generated, ensuring concurrent requests cannot collide on the same output path.

Changes:

  • Replace timestamp-based output filename suffix (1-second resolution) with a uuid4()-based suffix for global uniqueness.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: Race condition in PDF output naming — concurrent requests silently overwrite filled PDFs

2 participants