[PR #11352] fix: explicitly allow remove root when performing library removal #12855

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

Original Pull Request: https://github.com/jellyfin/jellyfin/pull/11352

State: closed
Merged: Yes


Changes

This PR added a workaround to temporarily mark the UserRoot as non-root during library validation for VirtualFolder removal. This is probably not the best solution but I'd like to see any suggestions.

The RootFolder protection is to not accidentally remove the whole library when the path is temporarily unavailable, and is a valid use case. But when the user explicitly asked for removal, we should not protect it. So perhaps IsRoot can be renamed to something like DeleteProtect?

Issues

Fixes #11269

**Original Pull Request:** https://github.com/jellyfin/jellyfin/pull/11352 **State:** closed **Merged:** Yes --- <!-- Ensure your title is short, descriptive, and in the imperative mood (Fix X, Change Y, instead of Fixed X, Changed Y). For a good inspiration of what to write in commit messages and PRs please review https://chris.beams.io/posts/git-commit/ and our documentation. --> **Changes** <!-- Describe your changes here in 1-5 sentences. --> This PR added a workaround to temporarily mark the UserRoot as non-root during library validation for VirtualFolder removal. This is probably not the best solution but I'd like to see any suggestions. The RootFolder protection is to not accidentally remove the whole library when the path is temporarily unavailable, and is a valid use case. But when the user explicitly asked for removal, we should not protect it. So perhaps `IsRoot` can be renamed to something like `DeleteProtect`? **Issues** <!-- Tag any issues that this PR solves here. ex. Fixes # --> Fixes #11269
OVERLORD added the pull-request label 2026-02-07 07:02:56 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#12855