Skip to content

Conversation

sudo-bmitch
Copy link
Contributor

This clarifies the Range header response should be the range of the entire blob and not the last received chunk.

Fixes #580

@sudo-bmitch
Copy link
Contributor Author

@rchincha when Zot has a new release, let me know and I'll update that to resolve the failing checks.

rchincha added a commit to rchincha/zot that referenced this pull request Jul 30, 2025
regclient/regclient#961
opencontainers/distribution-spec#581

Previously, zot returned the size of the currently uploaded chunk.
Other registries the size of the entire blob.

Align with the latter behavior.

Signed-off-by: Ramkumar Chinchani <[email protected]>
rchincha added a commit to rchincha/zot that referenced this pull request Jul 30, 2025
regclient/regclient#961
opencontainers/distribution-spec#581

Previously, zot returned the size of the currently uploaded chunk.
Other registries the size of the entire blob.

Align with the latter behavior.

Signed-off-by: Ramkumar Chinchani <[email protected]>
rchincha added a commit to project-zot/zot that referenced this pull request Jul 31, 2025
regclient/regclient#961
opencontainers/distribution-spec#581

Previously, zot returned the size of the currently uploaded chunk.
Other registries the size of the entire blob.

Align with the latter behavior.

Signed-off-by: Ramkumar Chinchani <[email protected]>
@sudo-bmitch sudo-bmitch force-pushed the pr-chunked-range-header branch from e7ed8af to f3004a8 Compare August 4, 2025 19:42
@sudo-bmitch
Copy link
Contributor Author

The update from Zot has been applied and this is ready for review.

Copy link
Contributor

@rchincha rchincha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

This clarifies the Range header response should be the range of the entire blob and not the last received chunk.

Signed-off-by: Brandon Mitchell <[email protected]>
@sudo-bmitch sudo-bmitch force-pushed the pr-chunked-range-header branch from f3004a8 to d9f703c Compare August 15, 2025 19:06
@sudo-bmitch
Copy link
Contributor Author

I updated this to add the clarification on the GET response, and also to better identify the "response" part of the patch API. @mikebrow please include any further edits you would like to see.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Range header in the chunked response needs clarification

4 participants