[PR #11520] Allow absolute path mismatch when getting virtual folder info #12933

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

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

State: closed
Merged: No


We have historically required the path stored in the database to exactly match the actual path on the filesystem to retrieve virtual folder information, dating back to the Emby era. However, this approach can cause issues when symbolic links are involved, as the link path may differ from the actual pointed path. To address this, allow matching based solely on the folder name when absolute path checking fails, mitigating such problems.

I have no idea why this works previously for 10.8 as @joshuaboniface said. The mismatching path should never worked as the code is from emby.

Changes

  • allow matching based solely on the folder name when absolute path checking fails for GetVirtualFolders

Issues

Fixes jellyfin/jellyfin#12100 Although I don't understand why it worked for 10.8

**Original Pull Request:** https://github.com/jellyfin/jellyfin/pull/11520 **State:** closed **Merged:** No --- We have historically required the path stored in the database to exactly match the actual path on the filesystem to retrieve virtual folder information, dating back to the Emby era. However, this approach can cause issues when symbolic links are involved, as the link path may differ from the actual pointed path. To address this, allow matching based solely on the folder name when absolute path checking fails, mitigating such problems. I have no idea why this works previously for 10.8 as @joshuaboniface said. The mismatching path should never worked as the code is from emby. <!-- 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. --> - allow matching based solely on the folder name when absolute path checking fails for `GetVirtualFolders` **Issues** <!-- Tag any issues that this PR solves here. ex. Fixes # --> Fixes jellyfin/jellyfin#12100 Although I don't understand why it worked for 10.8
OVERLORD added the pull-request label 2026-02-07 07:04:20 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#12933