MEDIUM: /raw/{id} returns empty body for non-image attachment pastes #281
Notifications
Total Time Spent: 43 minutes
fen
43 minutes
No due date set.
Dependencies
No dependencies set.
Reference: poslop/palette#281
Reference in New Issue
Block a user
Found in v0.5.0 pre-release pentest.
handleRaw only streams the blob for image mimes (#221 path); for other attachment mimes it falls through to empty row.Content and serves 0 bytes. Repro:
curl https://palette-dev.archfox.org/raw/<non-image-attachment-id> | wc -c-> 0 (image control paste streams correctly).Definition of done: /raw streams the attachment blob with the sniffed mime for ALL attachment mimes; regression test per the attachment QA recipe (multipart create, size + Content-Type + byte equality).
QA PASS (fix attempt 1). Merged PR #286 and deployed to palette-dev.
Evidence (live, post-rollout):