mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #11444] Validate Collection Folders on adding and removal #12903
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?
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
allowRemoveRootparameter to determine if the path accessible check is needed, because whenallowRemoveRoot == true, it means the user explicitly requires a deletion.Issues
Fixes #11258
Fixes #11385