Skip to content

Conversation

JPVenson
Copy link
Member

unfucked version of #12904

@JPVenson JPVenson changed the title Bump version to 10.10.0 Fix stackoverflow in MediaSourceCount Oct 29, 2024
@JPVenson JPVenson added stable backport Backport into the next stable release bug Something isn't working labels Oct 29, 2024
@JPVenson JPVenson requested a review from a team October 29, 2024 14:16
Copy link
Member

@Bond-009 Bond-009 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like that the incorrect data just gets ignored.
IMO a better solution would be throwing in the PrimaryVersionId setter when the Video it points to also has a PrimaryVersionId. This way the culprit (probably a plugin) can get blamed and it can be fixed instead of covered up.

@JPVenson
Copy link
Member Author

Video it points to also has a PrimaryVersionId.

Isnt the issue here, thats why its recursive, the issue is that most likely there is a video that PrimaryId is itself. I agree that this should be better handled on setter and never create bad data in the first place, but then we also need to migrate bad data as well which is more then just this quickfix.

@Bond-009
Copy link
Member

Isnt the issue here, thats why its recursive, the issue is that most likely there is a video that PrimaryId is itself.

Even easier to check, don't even need to interact with the DB, it's basically free.

but then we also need to migrate bad data

If it's like you say, PrimaryId == Id a migration isn't too hard

which is more then just this quickfix.

If this is just a "quick fix" it shouldn't be backported but fixed properly in master.

@JPVenson JPVenson removed the stable backport Backport into the next stable release label Nov 1, 2024
@JPVenson JPVenson requested a review from Bond-009 March 10, 2025 12:58
@Bond-009 Bond-009 merged commit 069b518 into jellyfin:release-10.10.z Mar 10, 2025
15 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants