-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
OCI: POST request with digest and blob should yield 201 #3212
OCI: POST request with digest and blob should yield 201 #3212
Conversation
Is it guaranteed that processing is complete (irregardless of the storage backend?) I have a feeling that both 202 and 201 can be valid responses. @dmcgowan @manishtomar PTAL |
@thaJeztah the spec says:
and
Although now that I take another look at the spec, I'm not quite sure how I came up with the requirement in code that |
Signed-off-by: Wayne Warren <wayne.warren.s@gmail.com>
Signed-off-by: Wayne Warren <wayne.warren.s@gmail.com>
Signed-off-by: Wayne Warren <wayne.warren.s@gmail.com>
as the spec was changed per opencontainers/distribution-spec#206, this pull-request is not valid. |
Good catch; looks like this is the updated description (if I'm reading the correct section);
|
Should we close this PR or do you want to give it a rework @waynr ? |
Looks like we can close this one indeed (also see #3230 (comment)) Thanks @waynr ! |
fixes #3230 OCI Conformance: POST request with digest and blob should yield a 201
This addresses a couple compliance failures mentioned in #3203 by adding a new function,
PostBlobData
, that dispatches to different handler functions depending on the contents of thedigest
query parameter and whether or not the POST request has a non-zero content length.