mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
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/15910
Author: @ZeusCraft10
Created: 12/31/2025
Status: 🔄 Open
Base:
master← Head:fix/issue-15907-static-file-timestamp📝 Commits (2)
9843f67Fix infinite metadata pruning loop on rclone/network mounts117704bFix #15907: Handle invalid Win32 FileTime in static files📊 Changes
6 files changed (+275 additions, -15 deletions)
View changed files
📝
CONTRIBUTORS.md(+1 -0)➕
Jellyfin.Server/Infrastructure/SafeTimestampFileInfo.cs(+67 -0)➕
Jellyfin.Server/Infrastructure/SafeTimestampFileProvider.cs(+57 -0)📝
Jellyfin.Server/Startup.cs(+3 -2)📝
MediaBrowser.Providers/Manager/MetadataService.cs(+19 -13)➕
tests/Jellyfin.Server.Tests/SafeTimestampFileInfoTests.cs(+128 -0)📄 Description
Summary
Fixes #15907 - Web UI fails to load with \ArgumentOutOfRangeException: Not a valid Win32 FileTime.
Root Cause
Files in Docker containers can have timestamps before January 1, 1601 (the Win32 epoch), causing \DateTime.ToFileTimeUtc()\ to throw when the StaticFileMiddleware tries to generate \ETag/\Last-Modified\ headers.
Solution
Implemented a defense-in-depth wrapper pattern:
Changes
Testing
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.