[PR #5383] [MERGED] do not pick a linked item as primary when merging versions #10511

Closed
opened 2026-02-07 06:21:39 +03:00 by OVERLORD · 0 comments
Owner

📋 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: masterHead: fix-mergeversions-overflow


📝 Commits (1)

  • 59814bd do 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.

## 📋 Pull Request Information **Original PR:** https://github.com/jellyfin/jellyfin/pull/5383 **Author:** [@cvium](https://github.com/cvium) **Created:** 3/5/2021 **Status:** ✅ Merged **Merged:** 3/5/2021 **Merged by:** [@Bond-009](https://github.com/Bond-009) **Base:** `master` ← **Head:** `fix-mergeversions-overflow` --- ### 📝 Commits (1) - [`59814bd`](https://github.com/jellyfin/jellyfin/commit/59814bd55e8c6c5fbd167e90403b9bd2e390c78c) do not pick a linked item as primary when merging versions ### 📊 Changes **1 file changed** (+1 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `Jellyfin.Api/Controllers/VideosController.cs` (+1 -3) </details> ### 📄 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 https://github.com/jellyfin/jellyfin/blob/cd4641dca02bae552cc7ea1942b0efbd4b791bcb/MediaBrowser.Controller/Entities/Video.cs#L174 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-07 06:21:39 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#10511