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

manifests: Return UNSUPPORTED when deleting manifests by tag #3174

Merged
merged 1 commit into from Mar 1, 2021

Conversation

adamwg
Copy link
Contributor

@adamwg adamwg commented Jun 2, 2020

The OCI distribution spec allows implementations to support deleting manifests by tag, but also permits returning the UNSUPPORTED error code for such requests. docker/distribution has never supported deleting manifests by tag, but previously returned DIGEST_INVALID.

The Tag and Digest fields of the manifestHandler are already correctly populated based on which kind of reference was given in the request URL. Return UNSUPPORTED if the Tag field is populated.

Signed-off-by: Adam Wolfe Gordon awg@digitalocean.com

@adamwg
Copy link
Contributor Author

adamwg commented Jun 2, 2020

The OCI distribution spec allows implementations to support deleting manifests
by tag, but also permits returning the `UNSUPPORTED` error code for such
requests. docker/distribution has never supported deleting manifests by tag, but
previously returned `DIGEST_INVALID`.

The `Tag` and `Digest` fields of the `manifestHandler` are already correctly
populated based on which kind of reference was given in the request URL. Return
`UNSUPPORTED` if the `Tag` field is populated.

Signed-off-by: Adam Wolfe Gordon <awg@digitalocean.com>
Base automatically changed from master to main January 27, 2021 15:51
@milosgajdos milosgajdos added the conformance Related to conformance to distribution specification label Mar 1, 2021
@milosgajdos milosgajdos merged commit 17ab8af into distribution:main Mar 1, 2021
@milosgajdos milosgajdos added this to the Registry/3.0.0 milestone May 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conformance Related to conformance to distribution specification
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants