mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #6176] [MERGED] Require userId in getItems and getTrailers endpoints #10848
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/6176
Author: @nielsvanvelzen
Created: 6/12/2021
Status: ✅ Merged
Merged: 6/13/2021
Merged by: @Bond-009
Base:
master← Head:userid-required📝 Commits (1)
226abdeChange userId to required in operations that would otherwise throw exceptions📊 Changes
2 files changed (+4 additions, -4 deletions)
View changed files
📝
Jellyfin.Api/Controllers/ItemsController.cs(+3 -3)📝
Jellyfin.Api/Controllers/TrailersController.cs(+1 -1)📄 Description
Changes
The user is expected to be not-null meaning the userId parameter is required. I'm quite sure a lot of other endpoints require the userId too as they often fallback to
Guid.Emptywhich might throw exceptions from somewhere deeper in the code (although not tested)Issues
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.