feat(subsonic): getUser + envelope-shaped 404 for /rest/* #11
Reference in New Issue
Block a user
Delete Branch "dev"
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?
Summary
Feishin's first-login probe hits
/rest/getUser.viewto discover the authenticated identity's roles. We never registered the route, so chi returned a plain-text 404 — Feishin's parser treats anything non-Subsonic as a generic auth failure ("Failed to log in"), masking the real cause.getUser: full role bag. Admins get every role; non-admins get the play-music subset. Single-user M1 means cross-user lookups by admins return the caller's roles for now; revisit when user management lands./rest/*404 → envelope: any future client probing an unimplemented endpoint now sees a parseable failure (code=0, "Method not implemented") instead of plain text.Test plan
docker compose up --build(nodown -vneeded — schema unchanged)curl /rest/notARealMethod.view?u=...&t=...&s=...returns Subsonic envelope with status=failed🤖 Generated with Claude Code