fix(android): interceptor order — auth before baseUrl (hotfix for v2026.06.02) #76
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
Hotfix for v2026.06.02 connectivity bug: fresh installs land at the Welcome screen and can never sign in.
Root cause:
NetworkModule.ktchainedBaseUrlInterceptorbeforeAuthCookieInterceptor. Both interceptors scope work onhost == PLACEHOLDER_HOST(drift #568/#569, to keep the Minstrel session cookie off Coil image fetches to MusicBrainz / coverartarchive / Lidarr). With BaseUrl first, the URL was rewritten to the real Minstrel host before auth ran — so auth's placeholder check failed on every request, the session cookie was never attached on outgoing requests, andSet-Cookiefrom login was never captured.The
AuthCookieInterceptorTestchains the interceptors in the correct order (auth, then baseUrl), which is why the regression went undetected — only production was wrong.Fix: swap to
(auth, baseUrl, logging). Auth now seesplaceholder.invalid, attaches/captures the cookie, then BaseUrl rewrites the host for transport.Client-side only — no server change required. New APK needed.
Test Plan