Skip to content

Add a patch status to recover failed requests#366

Merged
vbatts merged 1 commit intoopencontainers:mainfrom
sudo-bmitch:pr-blob-patch-status
Mar 22, 2023
Merged

Add a patch status to recover failed requests#366
vbatts merged 1 commit intoopencontainers:mainfrom
sudo-bmitch:pr-blob-patch-status

Conversation

@sudo-bmitch
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

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

```
Location <location>
Location: <location>
Range: 0-<end-of-range>
Copy link
Copy Markdown
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
Copy Markdown
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