BUG: GET /assets/:id/live-path uses asset display_name to find recorder — will match wrong recorder #76
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug
GET /api/v1/assets/:id/live-pathatservices/mam-api/src/routes/assets.js:312-316:The
current_session_idcolumn is set toclipName(a human-readable string like"MyRecorder_20260524_235959"). But the query joins onasset.display_namewhich could be:current_session_id) — ordisplay_name)Impact
If an editor renames an asset, the live-path lookup will either:
recording_containerasmovdefault) — minorcurrent_session_idhappens to match the renamed asset — this would return the wrong extension for the live pathLocation
services/mam-api/src/routes/assets.js:312-316Fix
Query by asset ID directly instead of by
display_namematchingcurrent_session_id. The recorder's session should track the asset UUID, not the human-readable clip name.