Commit f43ca43f authored by Russell Cohen's avatar Russell Cohen Committed by AWS SDK Rust Bot
Browse files

[smithy-rs] Fix aws-sdk-rust#930 (PutSnapshotBlock) (#3126)

## Motivation and Context
A regression in 0.56 caused `X-Amz-Content-sha256` to be omitted when
the `UnsignedPayload` trait was present. This re-enables the old
behavior and fixes this operation.
<!--- Why is this change required? What problem does it solve? -->
<!--- If it fixes an open issue, please link to the issue here -->

## Description
Enable the `x-amz-content-sha256` header whenever the unsigned payload
trait is present.

Old code:
https://github.com/awslabs/smithy-rs/blob/smithy-rs-release-0.54.x/aws/sdk-codegen/src/main/kotlin/software/amazon/smithy/rustsdk/SigV4SigningDecorator.kt#L168

## Testing
- [x] Manual integration test
- [x] Modeled protocol test that ensures that header is set
<!--- Please describe in detail how you tested your changes -->
<!--- Include details of your testing environment, and the tests you ran
to -->
<!--- see how your change affects other areas of the code, etc. -->

## Checklist
<!--- If a checkbox below is not applicable, then please DELETE it
rather than leaving it unchecked -->
- [x] I have updated `CHANGELOG.next.toml` if I made changes to the
smithy-rs codegen or runtime crates
- [x] I have updated `CHANGELOG.next.toml` if I made changes to the AWS
SDK, generated SDK code, or SDK runtime crates

----

_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._
parent 511abe92
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
[workspace]
exclude = [
    "examples/webassembly",
    "examples/cross_service",
    "examples/examples",
    "examples/lambda",
    "examples/test-utils",
    "tests/webassembly",
    "tests/no-default-features"
    "examples/webassembly",
    "examples/cross_service",
    "tests/no-default-features",
    "tests/webassembly"
]
members = [
    "sdk/accessanalyzer",
@@ -224,6 +224,7 @@ members = [
    "sdk/kms",
    "sdk/lakeformation",
    "sdk/lambda",
    "sdk/launchwizard",
    "sdk/lexmodelbuilding",
    "sdk/lexmodelsv2",
    "sdk/lexruntime",
+2 −2
Original line number Diff line number Diff line
@@ -25,8 +25,8 @@ The SDK provides one crate per AWS service. You must add [Tokio](https://crates.

    ```toml
    [dependencies]
    aws-config = "0.57.1"
    aws-sdk-dynamodb = "0.35.0"
    aws-config = "0.57.0"
    aws-sdk-dynamodb = "0.36.0"
    tokio = { version = "1", features = ["full"] }
    ```

+4 −4
Original line number Diff line number Diff line
@@ -6,10 +6,10 @@ edition = "2021"
publish = false

[dependencies]
aws-config= { version = "0.57.1", path = "../../../sdk/aws-config" }
aws-sdk-rekognition= { version = "0.35.0", path = "../../../sdk/rekognition" }
aws-sdk-s3= { version = "0.35.0", path = "../../../sdk/s3" }
aws-smithy-types= { version = "0.57.1", path = "../../../sdk/aws-smithy-types", features = ["rt-tokio"] }
aws-config= { version = "0.57.0", path = "../../../sdk/aws-config" }
aws-sdk-rekognition= { version = "0.36.0", path = "../../../sdk/rekognition" }
aws-sdk-s3= { version = "0.36.0", path = "../../../sdk/s3" }
aws-smithy-types= { version = "0.57.0", path = "../../../sdk/aws-smithy-types", features = ["rt-tokio"] }

[dependencies.tokio]
version = "1.20.1"
+6 −6
Original line number Diff line number Diff line
@@ -7,12 +7,12 @@ publish = false

[dependencies]
kamadak-exif = "0.5.4"
aws-config= { version = "0.57.1", path = "../../../sdk/aws-config" }
aws-sdk-dynamodb= { version = "0.35.0", path = "../../../sdk/dynamodb" }
aws-sdk-rekognition= { version = "0.35.0", path = "../../../sdk/rekognition" }
aws-sdk-s3= { version = "0.35.0", path = "../../../sdk/s3" }
aws-smithy-types= { version = "0.57.1", path = "../../../sdk/aws-smithy-types", features = ["rt-tokio"] }
aws-types= { version = "0.57.1", path = "../../../sdk/aws-types" }
aws-config= { version = "0.57.0", path = "../../../sdk/aws-config" }
aws-sdk-dynamodb= { version = "0.36.0", path = "../../../sdk/dynamodb" }
aws-sdk-rekognition= { version = "0.36.0", path = "../../../sdk/rekognition" }
aws-sdk-s3= { version = "0.36.0", path = "../../../sdk/s3" }
aws-smithy-types= { version = "0.57.0", path = "../../../sdk/aws-smithy-types", features = ["rt-tokio"] }
aws-types= { version = "0.57.0", path = "../../../sdk/aws-types" }

[dependencies.tokio]
version = "1.20.1"
+8 −8
Original line number Diff line number Diff line
@@ -30,14 +30,14 @@ streaming-zip = "0.5.0"
tempfile = "3.5.0"
tokio-stream = "0.1.12"
tracing = "0.1.37"
aws-config= { version = "0.57.1", path = "../../../sdk/aws-config" }
aws-sdk-dynamodb= { version = "0.35.0", path = "../../../sdk/dynamodb" }
aws-sdk-rekognition= { version = "0.35.0", path = "../../../sdk/rekognition" }
aws-sdk-s3= { version = "0.35.0", path = "../../../sdk/s3" }
aws-sdk-sns= { version = "0.35.0", path = "../../../sdk/sns" }
aws-smithy-http= { version = "0.57.1", path = "../../../sdk/aws-smithy-http" }
aws-smithy-runtime= { version = "0.57.1", path = "../../../sdk/aws-smithy-runtime" }
aws-smithy-types-convert= { version = "0.57.1", path = "../../../sdk/aws-smithy-types-convert", features = ["convert-chrono"] }
aws-config= { version = "0.57.0", path = "../../../sdk/aws-config" }
aws-sdk-dynamodb= { version = "0.36.0", path = "../../../sdk/dynamodb" }
aws-sdk-rekognition= { version = "0.36.0", path = "../../../sdk/rekognition" }
aws-sdk-s3= { version = "0.36.0", path = "../../../sdk/s3" }
aws-sdk-sns= { version = "0.36.0", path = "../../../sdk/sns" }
aws-smithy-http= { version = "0.57.0", path = "../../../sdk/aws-smithy-http" }
aws-smithy-runtime= { version = "0.57.0", path = "../../../sdk/aws-smithy-runtime" }
aws-smithy-types-convert= { version = "0.57.0", path = "../../../sdk/aws-smithy-types-convert", features = ["convert-chrono"] }

[dependencies.aws_lambda_events]
version = "0.11.1"
Loading