BUG: POST /assets body param sourceType, needsProxy documented but unused #64

Closed
opened 2026-05-25 03:28:46 -04:00 by zgaetano · 1 comment
Owner

Fixed in current mainsourceType now drives media_type (audio vs video), needsProxy=false short-circuits the proxy queue when a proxy key is already present. See services/mam-api/src/routes/assets.js:126-200.

Fixed in current `main` — `sourceType` now drives `media_type` (audio vs video), `needsProxy=false` short-circuits the proxy queue when a proxy key is already present. See `services/mam-api/src/routes/assets.js:126-200`.
Author
Owner

Fix Plan — #64 sourceType, needsProxy params documented but unused

Root cause: POST /assets destructures only projectId, binId, clipName, hiresKey, proxyKey, duration, capturedAt. Any sourceType or needsProxy fields silently ignored.

Fix: Either:

  1. Handle these fields in the INSERT (add columns or use them to set defaults)
  2. Return 400 for unrecognized fields (strict validation)

Files: src/routes/assets.js POST handler
Effort: ~30min
**Priority: P3 — API correctness

## Fix Plan — #64 sourceType, needsProxy params documented but unused **Root cause:** POST /assets destructures only projectId, binId, clipName, hiresKey, proxyKey, duration, capturedAt. Any sourceType or needsProxy fields silently ignored. **Fix:** Either: 1. Handle these fields in the INSERT (add columns or use them to set defaults) 2. Return 400 for unrecognized fields (strict validation) **Files:** src/routes/assets.js POST handler **Effort:** ~30min **Priority: P3 — API correctness
Sign in to join this conversation.
No milestone
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: WildDragonLLC/dragonflight#64
No description provided.