Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.












Motivation and Context
To support service level release control, we need to be able to codegen with both pre SRA and post SRA code. So need to bring codegen code back related to old Signers.
Modifications
Bringing back code by reverting these PRs:
#4286
#4292
#4280
Fixed tests the break with the reverts.
This is not the end state. With this PR, both old Signer and new SRA related logic (AuthSchemes and HttpSigner) are getting generated and configured on the client. Next PR needs to introduce a flag and switch the codegen logic to generate only one or the other. If the CI doesn't break at this PR, I'd prefer to keep the switching logic in separate PR, to make reviewing easier.
In this current state, because of
aws-sdk-java-v2/core/aws-core/src/main/java/software/amazon/awssdk/awscore/internal/AwsExecutionContextBuilder.java
Line 129 in 5635201
Testing
Fixed some unit tests to make it work with configuring both pre/post SRA approach. Relying on CI to know if anything else breaks at this point.
update: Well, 1 test failed in the CI - async_putObject_httpChecksumValidation_withIncorrectChecksum. I don't fully understand why, but the same test for the sync client was already disabled earlier. We need to make sure flexible checksum work anyways and re-enable both these tests. I feel let's take that on separately for both sync and async and let this part of bringing old Signer back go through, so I can make the other changes to add the flag to switch between pre/post SRA logic in subsequent PR that builds on this PR.
Screenshots (if appropriate)
Types of changes
Checklist
mvn installsucceedsscripts/new-changescript and following the instructions. Commit the new file created by the script in.changes/next-releasewith your changes.License