M1-audit: chunked uploads never appear in listings — status state machine dead-ends at 'uploaded' #85

Closed
opened 2026-11-07 08:40:50 +01:00 by amiryahaya · 0 comments
Owner

ListFiles filters Status == "complete" (ListFiles.cs:39) but the chunked flow's only legal transition is pending→uploaded (UpdateFile.cs:42, #73 whitelist). Nothing ever writes "complete" on that path.

Trigger: upload via upload-url → blob → update → GET /folders/{id}/files → file missing. Blob sits on disk; users report lost files.

Fix: shared terminal-status constant covering both legacy and chunked terminal states (or flip UpdateFile to write "complete"); add upload-url→blob→update→list integration test (none exists).

Part of M1 closure audit #84. Blocks/first-task per §2.6.

ListFiles filters `Status == "complete"` (ListFiles.cs:39) but the chunked flow's only legal transition is pending→**uploaded** (UpdateFile.cs:42, #73 whitelist). Nothing ever writes "complete" on that path. **Trigger**: upload via upload-url → blob → update → `GET /folders/{id}/files` → file missing. Blob sits on disk; users report lost files. **Fix**: shared terminal-status constant covering both legacy and chunked terminal states (or flip UpdateFile to write "complete"); add upload-url→blob→update→list integration test (none exists). Part of M1 closure audit #84. Blocks/first-task per §2.6.
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
primatekuntech/failsulit#85
No description provided.