Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a patch status to recover failed requests #366

Merged
merged 1 commit into from
Mar 22, 2023

Conversation

sudo-bmitch
Copy link
Contributor

Signed-off-by: Brandon Mitchell git@bmitch.net

Fixes #353.

This defines the get blob upload API from the Docker spec, which is needed to recover an interrupted patch request when the client and server state get out of sync. It also includes updated conformance tests. Fixes to these APIs were recently added in distribution/distribution PR 3755.

Signed-off-by: Brandon Mitchell <git@bmitch.net>
Copy link
Member

@mikebrow mikebrow left a comment

Choose a reason for hiding this comment

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

LGTM
@dmcgowan can you give this a sanity check

@sudo-bmitch
Copy link
Contributor Author

@opencontainers/distribution-spec-maintainers any objections to merging?


```
Location <location>
Location: <location>
Range: 0-<end-of-range>
Copy link
Member

Choose a reason for hiding this comment

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

for this to be a new "MUST", do we have an idea of whether registries are already doing this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That got pulled in from the Docker Registry spec, so anyone implementing that would already be doing this.

@vbatts vbatts merged commit 535a845 into opencontainers:main Mar 22, 2023
@sudo-bmitch sudo-bmitch deleted the pr-blob-patch-status branch March 23, 2023 01:58
@sudo-bmitch sudo-bmitch mentioned this pull request Feb 1, 2024
8 tasks
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.

How should an upload be resumed?
5 participants