From 5f2d9c7aeaf20b9e94b2766d9c70618dca5a01d7 Mon Sep 17 00:00:00 2001 From: Norm Johanson Date: Thu, 26 Sep 2024 18:25:56 -0700 Subject: [PATCH] Fix issue #1824: Incorrectly using ASCII instead of UTF8 when converting message body to byte[] --- ....Lambda.Annotations.SourceGenerator.csproj | 2 +- .../Templates/APIGatewaySetupParameters.cs | 156 +++++++++--------- .../Templates/APIGatewaySetupParameters.tt | 2 +- .../src/Amazon.Lambda.Annotations.nuspec | 2 +- .../Amazon.Lambda.Annotations.csproj | 2 +- .../ComplexCalculator_Add_Generated.g.cs | 2 +- .../ComplexCalculator_Subtract_Generated.g.cs | 4 +- ...ndResponseWithHeaderV1Async_Generated.g.cs | 2 +- ...otFoundResponseWithHeaderV1_Generated.g.cs | 2 +- ...ndResponseWithHeaderV2Async_Generated.g.cs | 2 +- ...otFoundResponseWithHeaderV2_Generated.g.cs | 2 +- ...esponseWithCustomSerializer_Generated.g.cs | 2 +- ...s_OkResponseWithHeaderAsync_Generated.g.cs | 2 +- ...amples_OkResponseWithHeader_Generated.g.cs | 2 +- ...DynamicExample_DynamicInput_Generated.g.cs | 2 +- ...ynamicExample_DynamicReturn_Generated.g.cs | 2 +- ...nctions_AsyncStartupToLower_Generated.g.cs | 2 +- ...nctions_AsyncStartupToUpper_Generated.g.cs | 2 +- .../Functions_ToUpper_Generated.g.cs | 2 +- .../Functions_ToUpper_Generated_NET8.g.cs | 2 +- ...terExecutable_SayHelloAsync_Generated.g.cs | 2 +- .../GreeterExecutable_SayHello_Generated.g.cs | 2 +- .../Greeter_SayHelloAsync_Generated.g.cs | 2 +- .../Snapshots/Greeter_SayHello_Generated.g.cs | 2 +- ...trinsicExample_HasIntrinsic_Generated.g.cs | 2 +- ...ample_NullableHeaderHttpApi_Generated.g.cs | 2 +- ...sMethodWithResponse_ToUpper_Generated.g.cs | 2 +- ...arameterlessMethods_ToUpper_Generated.g.cs | 2 +- ...esWithBatchFailureReporting_Generated.g.cs | 2 +- ...idSQSEvents_ProcessMessages_Generated.g.cs | 2 +- .../complexCalculator.template | 2 +- .../customizeResponse.template | 2 +- .../dynamicexample.template | 2 +- .../ServerlessTemplates/greeter.template | 2 +- .../greeter_executable.template | 2 +- .../intrinsicexample.template | 2 +- .../ServerlessTemplates/net8.template | 2 +- .../nullreferenceexample.template | 2 +- .../parameterless.template | 2 +- .../parameterlesswithresponse.template | 2 +- .../simpleCalculator.template | 2 +- ...urcegeneratorserializationexample.template | 2 +- .../ServerlessTemplates/sqsEvents.template | 2 +- .../ServerlessTemplates/subnamespace.template | 2 +- .../subnamespace_executable.template | 2 +- .../subnamespace_executableimage.template | 2 +- .../ServerlessTemplates/taskexample.template | 2 +- .../voidexample - Copy.template | 2 +- .../ServerlessTemplates/voidexample.template | 2 +- .../SimpleCalculator_Add_Generated.g.cs | 2 +- ...impleCalculator_DivideAsync_Generated.g.cs | 2 +- .../SimpleCalculator_Multiply_Generated.g.cs | 2 +- .../SimpleCalculator_Pi_Generated.g.cs | 2 +- .../SimpleCalculator_Random_Generated.g.cs | 2 +- .../SimpleCalculator_Randoms_Generated.g.cs | 2 +- .../SimpleCalculator_Subtract_Generated.g.cs | 2 +- ...ializationExample_GetPerson_Generated.g.cs | 2 +- .../TaskExample_TaskReturn_Generated.g.cs | 2 +- .../VoidExample_VoidReturn_Generated.g.cs | 2 +- .../serverless.template | 2 +- .../serverless.template | 2 +- .../aws-lambda-tools-defaults.json | 8 +- .../TestServerlessApp/serverless.template | 2 +- 63 files changed, 144 insertions(+), 144 deletions(-) diff --git a/Libraries/src/Amazon.Lambda.Annotations.SourceGenerator/Amazon.Lambda.Annotations.SourceGenerator.csproj b/Libraries/src/Amazon.Lambda.Annotations.SourceGenerator/Amazon.Lambda.Annotations.SourceGenerator.csproj index 5441eeaa1..7735a4605 100644 --- a/Libraries/src/Amazon.Lambda.Annotations.SourceGenerator/Amazon.Lambda.Annotations.SourceGenerator.csproj +++ b/Libraries/src/Amazon.Lambda.Annotations.SourceGenerator/Amazon.Lambda.Annotations.SourceGenerator.csproj @@ -1,7 +1,7 @@  - 1.5.1 + 1.5.2 netstandard2.0