Closed
timothy
wants to merge 0 commits from
fix/217-219-api-fixes into main
pull from: fix/217-219-api-fixes
merge into: :main
:main
:renovate/lucene.net
:renovate/dotnet-monorepo
:renovate/sqlitepclraw.bundle_e_sqlite3-3.x
:renovate/meziantou.analyzer-3.x
:renovate/cliwrap-3.x
:913-scripted-playout-401
:release/v26.15.0-notes
:issue-806-guard-populations
:scratch/767b-poisoned
:scratch/767b-control
:release/v26.14.0-notes
:release/v26.14.0
:docs/510-skill-logo-bug-policy
:fix/510-watermark-resolution-policy
:fix/629-verdict-classifier-falseopens
:fix/609-decisions-edit-token-scope
:issue-135-clear-to-none
:release/v26.12.0-notes
:fix/409b-lastscan-api-parity
:fix/401-updatechannel-mirror-422
:fix/327-playlist-rename-validation
:fix/410-scancancel-log-level
:fix/409-447-librariesscreen-neverscanned
:fix/338-zap-exit-code
:fix/367-plex-budget-message
:fix/310-debom-legacy-cs
:ci/604-lane-rebalance
:feat/388-design-mirror
:feat/247-test-ownership
:feat/247-primary-action
:feat/357-player-owned-playback
:feat/357-jellyfin-plugin-poc
:fix/289-mcp-hardening
:issue58-mcp
:feat/244-channels-extract
:ci/auto-bump-prod-compose
:feat/multi-rerun-collections-api
:feat/collections-api
:feat/quick-wins
:feat/185-docs-part2
:feat/140-collections-screen
:feat/146-channel-edit
:feat/147-classic-ui-link
:issue22-renovate-dashboard
:feat/91-cutover
:feat/63-composite-create
:feat/65-library-browse
:feat/85-epg
:feat/86-schedule-editor
:feat/109-dashboard-data
:feat/99-session-tracking
:fix/dockerfile-node-tag
:feat/59-spa-foundation
:docs/59-ui-redesign-brief
:feat/102-json-guide
:feat/111-schedule-durations
:feat/104-artwork-upload
:feat/103-media-sources-api
:feat/playouts-read-api
:feat/108-health-api
:feat/105-picker-list-endpoints
:issue-97-channel-state-api
:issue42-jellyfin-musicvideos
:issue46-rest-api-error-contract
:dependabot/nuget/ErsatzTV.FFmpeg.Tests/multi-d307a2e06f
:qsv-improvements
:hdr-vulkan-cuda-test
No Reviewers
Labels
Clear labels
ad-hoc
api
bug
ci-cd
content
dependencies
enhancement
frontend
in-progress
jellyfin
parked
priority: high
priority: low
priority: medium
review
security
One-off / ad-hoc work not tracked by a dedicated issue
REST API / HTTP endpoints
Something isn't working
Build, test, deploy pipeline
Channel content / schedules / playlists
Dependency updates (Renovate)
New feature or improvement
ChicoryTV React SPA frontend
Claimed by an active session — do not pick up
Jellyfin tuner / IPTV integration
Excluded from automatic queue pickup; work only when explicitly selected
Adversarial review finding
Security / vulnerability fix
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: timothy/ersatztv#224
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Closes #217, closes #219 (adversarial-reviewer#18 gates).
#217 —
AddItemsToPlaylistHandler: RemoteStream added to the apply dictionary (was silently dropped); aggregate existence validation across all ten kinds mirroringAddItemsToCollectionHandler. Collections needed no changes (already fully validated — see issue scope correction). Tests: bogus id per kind → 422, valid RemoteStream persisted.#219 —
POST /api/libraries/{id}/scan-showcontract:ScanShowRequest(int ShowId, ...)replaces title; controller pre-checks show ∈ library → genuine 404 ProblemDetails; queues with DB-resolved title.GetShowIdByTitle(substring LIKE, no OrderBy) removed with its only caller; replaced byGetShowTitle(libraryId, showId). Breaking change acceptable: endpoint shipped days ago (PR #216), no external consumers. SPA sendsshow.id. OpenAPI + TS regenerated; error-contract tests extended.Full matrix green: ErsatzTV.Tests 990/990, Core 493, Scanner 1467, Architecture 5; web tsc + 477/477.
🤖 Generated with Claude Code
POST /api/libraries/{id}/scan-show resolved the target show via GetShowIdByTitle, an EF.Functions.Like "%title%" substring match with no OrderBy - non-deterministic under duplicate/overlapping titles and capable of scanning the wrong show. The Blazor UI never had this bug (it always passed the exact show id); this endpoint shipped days ago in PR #216 with no external consumers, so the contract break is safe. BREAKING CHANGE: ScanShowRequest now takes `showId: int` instead of `showTitle: string`. Replaced ITelevisionRepository.GetShowIdByTitle with GetShowTitle(libraryId, showId), which also enforces the show belongs to the given library. LibrariesController.ScanShow now returns a genuine 404 ProblemDetails (via ApiResults.NotFoundProblem, the established pre-check pattern from TemplateController.DeleteGroup) when the show id doesn't exist in that library, then queues QueueShowScanByLibraryId with the DB-resolved title. SPA: libraries.ts ScanShowParams.showId replaces showTitle; MediaDetailScreen.tsx passes show.id. Extended ApiErrorResponseMetadataTests and OpenApiErrorResponseContractTests with the new 404 contract for ScanShow. Regenerated v1.json / v1.d.ts via scripts/update-openapi.sh + npm run generate:api. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>Merged to main via integration PR #239 (all six gate-batch branches integrated in one CI round after pairwise doc conflicts; this PR's commits are reachable from main — see the merge commits there). Closing manually since Gitea did not auto-detect the branch merge.
Pull request closed