fluttercommunity / fluttercommunity/flutter_downloader
Automatic resume problem
- Dominant language
- Kotlin
- Stars
- 940
- Forks
- 561
- Avg merge
- 1h 18m
- Merged PRs (30d)
- 1
Description
[This commit](https://github.com/fluttercommunity/flutter_downloader/commit/a243a9495973dd676603030468b66164544a3d36 ) creates following problem.
If you have some of files already downloaded or left on your device (some files from batch download), automatic resume causes sending request with 'Range' header causes server to respond with code 416, because bytes are out of available range.
All in all I think this commit makes false assumption that all files present must be from the workmanager that unexpectedly quited. However it is not for all scenarios valid.
Would be nice to have at least an option to turn in off.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by inspecting the automatic-resume logic introduced in commit a243a9495973dd676603030468b66164544a3d36 and reproduce the 416 response with an existing or partially downloaded file. Determine where the Range request is formed and define how an opt-out should work; done means the option prevents invalid automatic resume without breaking normal downloads.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, flutter, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100