mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #13390] [MERGED] Catch IOExceptions for GetFileSystemMetadata #13554
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?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/13390
Author: @gnattu
Created: 1/18/2025
Status: ✅ Merged
Merged: 1/23/2025
Merged by: @joshuaboniface
Base:
release-10.10.z← Head:catch-ioexception📝 Commits (1)
1a7c229Catch IOExceptions for GetFileSystemMetadata📊 Changes
1 file changed (+10 additions, -0 deletions)
View changed files
📝
Emby.Server.Implementations/IO/ManagedFileSystem.cs(+10 -0)📄 Description
Our
GetFileSystemEntriesmethod will throw when enumerating the file system, but its callers might consider the unhandled exceptions as the whole path is not available. This would cause a single problematic file to fail the enumeration, and could lead to unexpected side effects.HandleIOException gracefully by marking the files throwing as not exist to let the caller skip that file.
Note that the dotnet's method
EnumerateFileSystemInfosmay also throw and failed to build the file list. We can do little in this case. See #13093 for more info for this kind of issue.Changes
Issues
Fixes #13389
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.