Prevent .tar file corruption by patching short reads#261
Open
joost-j wants to merge 6 commits intofox-it:mainfrom
Open
Prevent .tar file corruption by patching short reads#261joost-j wants to merge 6 commits intofox-it:mainfrom
joost-j wants to merge 6 commits intofox-it:mainfrom
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #261 +/- ##
==========================================
+ Coverage 44.75% 45.17% +0.41%
==========================================
Files 26 26
Lines 3546 3582 +36
==========================================
+ Hits 1587 1618 +31
- Misses 1959 1964 +5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Schamper
requested changes
Aug 12, 2025
Schamper
requested changes
Aug 12, 2025
57a9c5b to
5b22f2c
Compare
Schamper
requested changes
Aug 20, 2025
Contributor
|
Any idea when this is getting fixed? It's affecting me as well. Let me know if there's anything I can do to help! |
00a211c to
e990898
Compare
Co-authored-by: Erik Schamper <1254028+Schamper@users.noreply.github.com>
e990898 to
186a3e6
Compare
Schamper
requested changes
Apr 9, 2026
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.
Fixes an issue where a
.taroutput file would contain inconsistencies with regards to expected and actual file size of the included files.In some cases, a file on disk can report a size of X bytes, but at the time of actually reading X bytes from the file, less than X bytes are actually available in the file (a short read). Acquire would report these issues as
OSErrorin the resulting Acquisition log file, because the Python stdlibtarfile.pyhandles it that way. Data may however already be written to the destination archive at that point.Afterwards, Acquire continues to add new files to the archive. When trying to untar the file using
tar -xvf <FILE>this would show as atar: Skipping to next headererror and finally, the process exists with a nonzero exit code.Included a test case which simulates a file that actually returns less bytes than its reported size, to test this case.