mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #5824] [CLOSED] Handle symbolic links as source files #10680
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/5824
Author: @ralf1070
Created: 4/15/2021
Status: ❌ Closed
Base:
master← Head:symlink📝 Commits (1)
18c0824Handle symbolic links as source files📊 Changes
1 file changed (+21 additions, -0 deletions)
View changed files
📝
Jellyfin.Api/Helpers/FileStreamResponseHelpers.cs(+21 -0)📄 Description
When replaying content via DLNA 'Microsoft.AspNetCore.Http.SendFileResponseExtensions.SendFileAsyncCore'
validates the length of the sent information. Unfortuanately this check fails for source files
which are symbolic links (aka ReparsePoint's). In this case the size of the filename of the referenced
file is reported, instead of the size of the content of this file.
would require to add Mono.Posix to this project, which would add another Assembly and which is - as far
as I know - not portable to Windows and therefore would require conditional compilation.
the size of the open file. For all other files PhysicalFileResult is kept, as other parts of this
project may rely on using it's properties.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.