Skip to content

Bug: completed resumed downloads can remain as .downloading #9431

Closed

Description

@ShiroKSH

When a resumable download receives HTTP 416 after its sidecar file already has all expected bytes, the download job is marked completed but the sidecar is never promoted to its final path.

The normal completion path renames <destination>.downloading to <destination>. The 416 branch returns before that rename, so consumers receive a completed job whose download_path does not exist.

I have a focused fix and regression test ready for this path.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions