[Bug]: Subsonic POST stream/download ignores credentials in the form body

Abierto
#111 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
65/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
rust
Área
api, backend

Línea de trabajo

Start at src/api/subsonic/mod.rs:324, where stream/download hand the raw request straight to the file response without reading the body. Read how the other endpoints parse the form body and validate u/p/t/s/id, then see what the file response builder actually needs from the request (method and Range header) so it can be constructed from those parts. Done when the curl command in the issue authenticates and returns audio, and the existing subsonic tests still pass.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug

[!NOTE]
This issue was written by Claude (Claude Opus 5.5) from a code review session with @PhrolovaMoe. It was found by reading the code and hasn't been reproduced on a running server.

Version

0.40.0 (feat/desktop, 017a837b)

Area

Other

What happened?

For stream and download, rest never reads the request body so it can hand the request to the file response (src/api/subsonic/mod.rs:324). A client using the advertised formPost extension sends u, p/t/s and id in the body, so those requests fail with "required parameter is missing: u".

Steps to reproduce

curl -X POST -H 'Content-Type: application/x-www-form-urlencoded' -d 'u=me&p=…&c=test&id=…' http://host/rest/stream

Expected behavior

POST stream/download authenticate and play like every other endpoint.

Suggested fix

Read and parse the form body for these too, then build the file response from the remaining request parts (method and Range headers) instead of the original Request.

Lenguaje dominante
TypeScript
Estrellas
4
Forks
1
Merge medio
4 h 49 min
PR fusionados (30 d)
5

Preparar el entorno

  • Incluye un Dockerfile o un archivo de Docker Compose
  • Sin plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de tinystream-dev/tinystream

Todos los issues de tinystream-dev/tinystream

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.