Uploads overwrite each other within the same second #6

Closed
opened 2026-10-07 20:04:27 -04:00 by jared · 0 comments
Owner

Source: engineering review, 2026-10-07.

cmd_upload names files $(date +%Y%m%d-%H%M%S)-$name. Two image.png uploads in the same second both returned …-195630-image.png, and the file held only the second one's bytes.

Fix: create the file with mktemp (or a counter plus set -o noclobber).

_Source: engineering review, 2026-10-07._ `cmd_upload` names files `$(date +%Y%m%d-%H%M%S)-$name`. Two `image.png` uploads in the same second both returned `…-195630-image.png`, and the file held only the second one's bytes. **Fix:** create the file with `mktemp` (or a counter plus `set -o noclobber`).
jared added this to the v0.5.0 hardening + header/phone milestone 2026-10-07 20:04:27 -04:00
jared added the bug label 2026-10-07 20:04:27 -04:00
jared closed this issue 2026-10-07 20:15:49 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: LotusGuild/devdesk#6