[PR #11444] Validate Collection Folders on adding and removal #12903

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

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

State: closed
Merged: Yes


Changes

This PR validates the collection folder on addition and removal. This folder is very special and is hard to follow the common virtual folder validation. It needs to skip the accessible validation on addition to be successfully added, and it will require the accessible validation to actually remove this virtual folder. The current approach is to use the allowRemoveRoot parameter to determine if the path accessible check is needed, because when allowRemoveRoot == true, it means the user explicitly requires a deletion.

Issues

Fixes #11258
Fixes #11385

**Original Pull Request:** https://github.com/jellyfin/jellyfin/pull/11444 **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 validates the collection folder on addition and removal. This folder is very special and is hard to follow the common virtual folder validation. It needs to skip the accessible validation on addition to be successfully added, and it will require the accessible validation to actually remove this virtual folder. The current approach is to use the `allowRemoveRoot` parameter to determine if the path accessible check is needed, because when `allowRemoveRoot == true`, it means the user explicitly requires a deletion. **Issues** <!-- Tag any issues that this PR solves here. ex. Fixes # --> Fixes #11258 Fixes #11385
OVERLORD added the pull-request label 2026-02-07 07:03:48 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#12903