mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #5383] [MERGED] do not pick a linked item as primary when merging versions #10511
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/5383
Author: @cvium
Created: 3/5/2021
Status: ✅ Merged
Merged: 3/5/2021
Merged by: @Bond-009
Base:
master← Head:fix-mergeversions-overflow📝 Commits (1)
59814bddo not pick a linked item as primary when merging versions📊 Changes
1 file changed (+1 additions, -3 deletions)
View changed files
📝
Jellyfin.Api/Controllers/VideosController.cs(+1 -3)📄 Description
When merging two versions that are already merged (user error, but can happen), the first one would be picked and if it already has the other version as primary this line will cause a stack overflow as it goes into an infinite loop
cd4641dca0/MediaBrowser.Controller/Entities/Video.cs (L174)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.