Repository navigation
Conversation
Hello tcarmet,My role is to assist you with the merge of this Available options
Available commands
Status report is not available. |
Incorrect fix versionThe
Considering where you are trying to merge, I ignored possible hotfix versions and I expected to find:
Please check the |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files
... and 2 files with indirect coverage changes @@ Coverage Diff @@
## development/9.3 #6394 +/- ##
===================================================
- Coverage 85.70% 85.63% -0.08%
===================================================
Files 209 209
Lines 13616 13619 +3
===================================================
- Hits 11669 11662 -7
- Misses 1947 1957 +10
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
95b89da to
161e7f5
Compare
| * @return {string} the header without 'aws-chunked' elements, '' if nothing | ||
| * else was sent, unchanged if it holds no 'aws-chunked' element | ||
| */ | ||
| function removeAWSChunked(sourceHeader) { |
There was a problem hiding this comment.
The two methods removeAWSChunked and removeEmptyListElements could benefit from a common helper like removeFromCommaSeparatedList (respectively passing AWS_CHUNKED and '' to it as a parameter).
It's also questionable whether we need specific helpers for each case, even though removeAWSChunked is called three times in the cloudserver code base, they could as well call the generic helper with the proper argument, that would be at least as readable I think.
There was a problem hiding this comment.
fair enough, I ended up adding a common helper and calling it directly.
…ver separator The aws-chunked element was removed with the comma after it only, so 'gzip,aws-chunked', which the AWS CLI and botocore send over HTTPS, was stored as 'gzip,'. Remove every aws-chunked element of the list along with its separator and keep the other encodings as sent. CopyObject also drops empty list elements, so copying an object stored with a leftover separator stores a clean value.
Objects already stored with a leftover separator, such as 'gzip,', are returned as 'gzip' on HEAD and GET without rewriting their metadata. Recipients must ignore empty list elements (RFC 9110, section 5.6.1).
Incorrect fix versionThe
Considering where you are trying to merge, I ignored possible hotfix versions and I expected to find:
Please check the |
161e7f5 to
e4416c3
Compare
Clients that use streaming uploads with a trailing checksum, which the AWS CLI and botocore do by default over HTTPS, send
Content-Encoding: gzip,aws-chunked, and the object was stored and returned asgzip,with a dangling comma. This removesaws-chunkedcleanly wherever it appears in the list, and returns Content-Encoding without empty list items so objects already stored with the leftover comma read back asgzipwithout rewriting their metadata.