You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to remove the x-amz-checksum-mode header for talking to an s3 compatible data store. I would expect get_object().set_checksum_mode(None) to achieve this. However, it does not appear to do so. (There is a workaround I give at the bottom, but I would like this SDK to work as I would expect.)
I would happily put up a PR to fix this, except
I don't see anything wrong with the function itself (
But that seems like it is doing only exactly what .set_checksum_mode(None) should accomplish, I would think. And, tbh, figuring out how to do this was quite unintuitive -- I would prefer that the fn that does the thing, actually does the thing.
Perhaps an additional question: why is checksum mode enabled by default? Is that actually undesirable? Or perhaps the field is indeed actually turned off by default, but somehow getting added to the headers anyway, ignoring the actual field?...
Describe the bug
I need to remove the
x-amz-checksum-mode
header for talking to an s3 compatible data store. I would expectget_object().set_checksum_mode(None)
to achieve this. However, it does not appear to do so. (There is a workaround I give at the bottom, but I would like this SDK to work as I would expect.)I would happily put up a PR to fix this, except
aws-sdk-rust/sdk/s3/src/operation/get_object/builders.rs
Line 718 in f007170
aws-sdk-rust/sdk/s3/src/operation/get_object/_get_object_input.rs
Line 813 in f007170
aws-sdk-rust/sdk/s3/src/protocol_serde/shape_get_object.rs
Line 390 in f007170
Please correct me if I am simply using the wrong function to achieve my goal, or there is some other point that I am missing, thanks.
Regression Issue
Expected Behavior
There is no
x-amx-checksum-mode
header in the request.Current Behavior
The HTTP request headers include
x-amz-checksum-mode = ENABLED
Reproduction Steps
Full repro steps:
cargo new s3checksum cd s3checksum/ cargo add aws_config -F behavior-version-latest cargo add aws_sdk_s3 cargo add tokio -F full
With this main.rs
Will give output like:
Possible Solution
Perhaps somewhere something is overriding the value
set_checksum_mode
sets?Additional Information/Context
There is a workaround:
But that seems like it is doing only exactly what
.set_checksum_mode(None)
should accomplish, I would think. And, tbh, figuring out how to do this was quite unintuitive -- I would prefer that the fn that does the thing, actually does the thing.Version
Environment details (OS name and version, etc.)
WSL2 Ubuntu in windows 11
Logs
No response
The text was updated successfully, but these errors were encountered: