Skip to content

Range header in the chunked response needs clarification #580

@sudo-bmitch

Description

@sudo-bmitch

The current text of the chunked response says:

Location: <location>
Range: 0-<end-of-range>

Each consecutive chunk upload SHOULD use the <location> provided in the response to the previous chunk upload.

The <end-of-range> value is the position of the last uploaded byte.

https://github.com/opencontainers/distribution-spec/blob/583e014d15418d839d67f68152bc2c83821770e0/spec.md#L373C1-L380C70

There are differing implementations that interpret "last uploaded byte" to be either the last byte of the current chunk, or the last byte of the overall blob. I've been basing my code on the Distribution Project's implementation, that returns the last uploaded byte of the overall blob, and think the spec should both clarify this and test for it in the conformance test.

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