Skip to content

Commit 400dda0

Browse files
committed
Address TODOs
1 parent 9f2e918 commit 400dda0

File tree

8 files changed

+10
-19
lines changed

8 files changed

+10
-19
lines changed

core/auth/src/main/java/software/amazon/awssdk/auth/credentials/AwsBasicCredentials.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ public final class AwsBasicCredentials implements AwsCredentials,
4747
* <p>
4848
* This should be accessed via {@link AnonymousCredentialsProvider#resolveCredentials()}.
4949
*/
50-
// TODO(sra-identity-and-auth): Check if this static member can be removed after cleanup
5150
@SdkInternalApi
5251
static final AwsBasicCredentials ANONYMOUS_CREDENTIALS = builder().validateCredentials(false).build();
5352

core/aws-core/src/main/java/software/amazon/awssdk/awscore/internal/authcontext/AwsCredentialsAuthorizationStrategy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ private static AwsCredentialsIdentity resolveCredentials(
110110
MetricCollector metricCollector) {
111111
Validate.notNull(credentialsProvider, "No credentials provider exists to resolve credentials from.");
112112

113-
// TODO(sra-identity-and-auth): internal issue SMITHY-1677. avoid join for async clients.
113+
// TODO(technical-debt-reduction): internal issue JAVA-7739. avoid join for async clients.
114114
Pair<? extends AwsCredentialsIdentity, Duration> measured =
115115
MetricUtils.measureDuration(() -> CompletableFutureUtils.joinLikeSync(credentialsProvider.resolveIdentity()));
116116

core/aws-core/src/main/java/software/amazon/awssdk/awscore/internal/authcontext/TokenAuthorizationStrategy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ private static TokenIdentity resolveToken(IdentityProvider<? extends TokenIdenti
8787
MetricCollector metricCollector) {
8888
Validate.notNull(tokenProvider, "No token provider exists to resolve a token from.");
8989

90-
// TODO(sra-identity-and-auth): internal issue SMITHY-1677. avoid join for async clients.
90+
// TODO(technical-debt-reduction): internal issue JAVA-7739. avoid join for async clients.
9191
Pair<TokenIdentity, Duration> measured =
9292
MetricUtils.measureDuration(() -> CompletableFutureUtils.joinLikeSync(tokenProvider.resolveIdentity()));
9393
metricCollector.reportMetric(CoreMetric.TOKEN_FETCH_DURATION, measured.right());

core/http-auth-aws/src/main/java/software/amazon/awssdk/http/auth/aws/internal/signer/V4RequestSigningResult.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
* A container for data produced during and as a result of the SigV4 request signing process.
2323
*/
2424
@SdkInternalApi
25-
// TODO(sra-identity-auth): This is currently not @Immutable because signedRequest is a Builder. Is Builder needed? If it could
26-
// hold reference to SdkHttpRequest instead, this class would be @Immutable.
2725
public final class V4RequestSigningResult {
2826
private final String contentHash;
2927
private final byte[] signingKey;

core/http-auth-aws/src/main/java/software/amazon/awssdk/http/auth/aws/internal/signer/io/ChecksumSubscriber.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@
2828
import software.amazon.awssdk.annotations.SdkInternalApi;
2929

3030
/**
31-
* A subscriber that takes a collection of checksums, and updates each checksum when it receives data.
31+
* A subscriber that takes a collection of checksums, and updates each checksum when it receives data. It buffers the entire data
32+
* in memory. This should only be used by non-streaming operations. Use {@link UnbufferedChecksumSubscriber} instead to avoid
33+
* buffering.
3234
*/
3335
@SdkInternalApi
3436
public final class ChecksumSubscriber implements Subscriber<ByteBuffer> {

core/http-auth-aws/src/main/java/software/amazon/awssdk/http/auth/aws/internal/signer/io/InMemoryPublisher.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@
2727
import software.amazon.awssdk.utils.Validate;
2828

2929
/**
30-
* Temporarily used for buffering all data into memory. TODO(sra-identity-auth): Remove this by supporting chunked encoding. We
31-
* should not buffer everything into memory.
30+
* Temporarily used for buffering all data into memory.
3231
*/
3332
@SdkInternalApi
3433
public class InMemoryPublisher implements Publisher<ByteBuffer> {

core/sdk-core/src/main/java/software/amazon/awssdk/core/internal/async/ChecksumCalculatingAsyncRequestBody.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@
4343
import software.amazon.awssdk.utils.builder.SdkBuilder;
4444

4545
/**
46-
* Wrapper class to wrap an AsyncRequestBody.
47-
* This will read the data in chunk format and append Checksum as trailer at the end.
48-
* TODO(sra-identity-and-auth): Checksum calculating logic for async client is still here and should be in
49-
* "http-auth-aws", more specifically, AwsChunkedV4PayloadSigner#signAsync
46+
* Wrapper class to wrap an AsyncRequestBody to calculate checksum as it reads data and append Checksum as trailer at the end.
47+
*
48+
* <p>
49+
* This is only used by non-sra code path, i.e., when a custom legacy signer is provided.
5050
*/
5151
@SdkInternalApi
5252
public class ChecksumCalculatingAsyncRequestBody implements AsyncRequestBody {

test/s3-tests/src/it/java/software/amazon/awssdk/services/s3/regression/upload/UploadTransferManagerRegressionTesting.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,6 @@ void putObject(UploadConfig config) throws Exception {
5656
Assumptions.assumeFalse(config.getBodyType() == BodyType.CONTENT_PROVIDER_WITH_LENGTH,
5757
"No way to create AsyncRequestBody by giving both an Publisher and the content length");
5858

59-
// Payload signing doesn't work correctly for async java based
60-
// TODO(sra-identity-auth) remove when chunked encoding support is added in async code path
61-
// MRAP requires body signing
62-
Assumptions.assumeFalse(
63-
config.isPayloadSigning() || config.getBucketType() == BucketType.MRAP,
64-
"Async payload signing doesn't work with Java based clients");
65-
6659
LOG.info(() -> "Running putObject with config: " + config);
6760

6861
BucketType bucketType = config.getBucketType();

0 commit comments

Comments
 (0)