Repository navigation
fix(thumb): generate thumbnail file names and validate request headers - #260
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## feat/thumbnail-source #260 +/- ##
=========================================================
+ Coverage 75.71% 75.72% +0.01%
=========================================================
Files 225 225
Lines 9838 9843 +5
=========================================================
+ Hits 7449 7454 +5
Misses 2389 2389 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
xsahil03x
force-pushed
the
fix/thumbnail-file-names-and-headers
branch
from
November 25, 2026 15:20
ca8c85e to
212da03
Compare
renefloor
approved these changes
Nov 25, 2026
- thumbnailFile and thumbnailFiles write each thumbnail under a generated name in a stream_thumbnail temp folder; web downloads are named thumbnail.<ext>. - StreamThumbnailSource.network rejects header names that are not HTTP tokens and values containing CR, LF or NUL. The Linux plugin re-checks. - On Linux, a request with headers does not follow redirects (FFmpeg 8.1+). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
xsahil03x
force-pushed
the
fix/thumbnail-file-names-and-headers
branch
from
November 26, 2026 12:07
212da03 to
441f49a
Compare
xsahil03x
enabled stacked auto-merge (squash)
November 26, 2026 12:08
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of FLU-1382. Stacked on #259.
What
thumbnailFile/thumbnailFileswrite each thumbnail as<uuid>.<ext>in a fixedstream_thumbnailtemp folder on every platform, instead of naming it after the video. Linux creates it withg_file_open_tmp(exclusive,0600); web downloads are namedthumbnail.<ext>. This removes the per-platform name parsing.StreamThumbnailSource.networkthrows anArgumentErrorwhen a header name isn't an HTTP token or a value contains CR, LF or NUL. The Linux plugin re-checks, since it builds the raw header lines.max_redirectsto0. FFmpeg 8.1 added that option; older versions ignore it and still follow redirects (noted in the CHANGELOG).Verified
flutter analyze --fatal-infosand the unit tests pass, including the header tests onStreamThumbnailSource...%2F..%2Fescaped.mp4. iOS simulator passed before the rebase onto feat(thumb)!: replace the video string with StreamThumbnailSource #259.🤖 Generated with Claude Code