Repository navigation
refactor(apiv2): finish server migration cleanup - #1067
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
| } | ||
| if r.Header.Get("X-Silo-User-Id") != "" { | ||
| return scheme + "://" + host + "/api/v1/plugins/" + h.deps.InstallID() | ||
| return scheme + "://" + host + "/api/v2/plugin-content/plugins/" + h.deps.InstallID() |
There was a problem hiding this comment.
Invalid plugin content identifier
For host-proxied Audiobookshelf responses, this builds URLs with h.deps.InstallID(). Production does not supply that dependency, so it defaults to the nonnumeric value silo.audiobooks. The v2 plugin-content handler parses this path segment as an integer and returns 400 invalid installation id, breaking generated cover and playback URLs. The new test misses the production failure because it injects "42" directly. Production must provide the actual numeric installation ID or use a mount that accepts the stable Audiobookshelf identifier.
The server and web app still had a few migration gaps: Audiobookshelf emitted a v1 plugin URL, v2 player operations bypassed the shared authenticated request path, the old catalog benchmark remained, and the API lifecycle docs still described a one-release bridge window.
This change:
/api/v2/plugin-contentand adds coverage for forwarded-host URL construction.scripts/benchmark_episode_catalog.pybenchmark and its v1 dependency from the migration ledger inputs.Validation:
make test-gomake test-web(575 files, 4,259 tests)The v1 bridge, operational probes, and compatibility adapters remain intentionally available until the tracked retirement decision is made.
Related issue: #886
AI disclosure: Generated with OpenAI
gpt-6in the Codex agent harness. No other AI tooling was used.