[GH-ISSUE #3827] Music DJ custom-folder tracks fail to play #2066

Closed
opened 2026-10-21 05:45:03 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @SpicyMarinara on GitHub (Jul 19, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3827

Originally assigned to: @SpicyMarinara on GitHub.

Problem

When Music DJ uses Custom music from a selected device folder, it can discover and choose the songs, but playback fails with:

Failed to load because no supported source was found.

Root cause

Two host-integration problems produced non-audio responses that Firefox reported as an unsupported source:

  1. The absolute song path was base64url-encoded into a Fastify route parameter. Fastify's default parameter limit is 100 characters, so ordinary absolute paths commonly returned 404 before reaching the handler.
  2. The browser <audio> element loaded the privileged route directly. Direct media-element requests cannot attach Marinara's saved X-Admin-Secret, so protected or remote setups could receive JSON/403 instead of audio.

Expected

Custom-folder tracks with long device paths should load through Marinara's authenticated API path and play normally without weakening the privileged file route.

Resolution

Tracked in draft PR #3822. The encoded path moves to the query string, and the player fetches the track through the authenticated API client before handing a temporary media URL to the audio element.

Originally created by @SpicyMarinara on GitHub (Jul 19, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3827 Originally assigned to: @SpicyMarinara on GitHub. ## Problem When Music DJ uses Custom music from a selected device folder, it can discover and choose the songs, but playback fails with: > Failed to load because no supported source was found. ## Root cause Two host-integration problems produced non-audio responses that Firefox reported as an unsupported source: 1. The absolute song path was base64url-encoded into a Fastify route parameter. Fastify's default parameter limit is 100 characters, so ordinary absolute paths commonly returned 404 before reaching the handler. 2. The browser `<audio>` element loaded the privileged route directly. Direct media-element requests cannot attach Marinara's saved `X-Admin-Secret`, so protected or remote setups could receive JSON/403 instead of audio. ## Expected Custom-folder tracks with long device paths should load through Marinara's authenticated API path and play normally without weakening the privileged file route. ## Resolution Tracked in draft PR #3822. The encoded path moves to the query string, and the player fetches the track through the authenticated API client before handing a temporary media URL to the audio element.
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
Pasta-Devs/Marinara-Engine#2066
No description provided.