-
Notifications
You must be signed in to change notification settings - Fork 910
Turning off trailing checksums for SSE #922
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
Conversation
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.
Can we add a changelog entry?
|
||
// S3 doesn't support trailing checksums for KMS encrypted objects | ||
if (headers.getOrDefault(SERVER_SIDE_ENCRYPTION_HEADER, new ArrayList<>()).contains(AWS_KMS.toString())) { | ||
return false; |
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.
Should we move the checks to an util method so that it can be used in both sync and async?
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.
Updated. Not sure that I love the name. Feel free to give ideas.
.bucket(BUCKET) | ||
.build(); | ||
|
||
s3.getObject(getObjectRequest); |
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.
Nit, can we close the response streams afterwards?
.bucket(BUCKET) | ||
.build(); | ||
|
||
s3Async.getObject(getObjectRequest, AsyncResponseTransformer.toBytes()); |
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.
.join()
? same as other tests.
} | ||
|
||
// S3 doesn't support trailing checksums for KMS encrypted objects | ||
if (headers.getOrDefault(SERVER_SIDE_ENCRYPTION_HEADER, new ArrayList<>()).contains(AWS_KMS.toString())) { |
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.
minor: replace new with Collections.emptyList()
3342422
to
84bb7fd
Compare
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.
Don't forget the changelog : )
84bb7fd
to
ffbcde4
Compare
…527ecf33 Pull request: release <- staging/0c865dac-9ea8-4186-8ae1-9786527ecf33
S3 trailing checksums don't support SSE either.
Types of changes
Checklist
mvn install
succeedsLicense