You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Partial-resume skips the wrong bytes in the buffered uploader #6683
Unconfirmed. This is the result of a search with Claude, may be a false positive.
After a 308 Resume Incomplete response with persisted_size strictly inside the current chunk, handle_partial must drop the first s already-persisted bytes of a Bytes element of length n.
However, in src/storage/src/storage/perform_upload/buffered/progress.rs:
The code performs b.split_off(n - s), which returns the last s bytes rather than dropping the first s bytes and retaining the remaining n - s bytes. Unless s == n / 2, the resent data contains the wrong bytes and the wrong length, corrupting the object payload upon completion.
Activity
akasakariko commentedon Nov 25, 2026
I'd like to work on this