-
Notifications
You must be signed in to change notification settings - Fork 208
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
clarify where OCI-Chunk-Min-Length response headers are expected #481
Conversation
The first section speaks about a chunked upload with three stages of HTTP requests (POST, PATCH, PUT), so the wording "the response" is ambiguous as to which one of the three requests it's for. The conformance tests seem to imply POST, and that is what makes the most sense to me - if the server only gives the minimum after the first PATCH or PUT, the client might have already written chunks which are too small without realising. Another bit of the spec talks about the same header, but refers explicitly to the PUT response of a chunked upload. This again doesn't feel right: I think POST was meant instead. Giving the minimum as part of the final PUT response is pointless, since the client isn't writing any more chunks after that point. Signed-off-by: Daniel Martí <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for fixing that.
From a practical point of view, I suspect the GET response to find the current offset should also return the chunk length, to better support stateless client resumption of uploads, but I've no idea if that's actually a current convention or not. |
The idea of setting this on the |
Should I do anything else to get this tiny clarification merged? Hopefully eight reviews aren't actually necessary :) |
It just needs a second maintainer to approve. Copying the commit message into the PR may get more attention. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
(see commit message)