mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
[PR #2278] [CLOSED] Fix null reference exception on API call without user id #9061
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/2278
Author: @mregni
Created: 1/14/2020
Status: ❌ Closed
Base:
master← Head:bugfix-2246📝 Commits (1)
0e7a78eAdded support for NULL user📊 Changes
1 file changed (+19 additions, -17 deletions)
View changed files
📝
MediaBrowser.Api/UserLibrary/ItemsService.cs(+19 -17)📄 Description
Changes
I added a fallback to the rootfolder of the library when no user is passed into the GetQueryResult function. This can happen when the /Items API is called without a UserId in the query. This call was/is supported on Emby and is useful for any app that wants to display a list of items in a library without the need of a user (via API key authentication).
Issues
Fixes #2246
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.