-
Notifications
You must be signed in to change notification settings - Fork 916
Fix to handle temporary Redirect 307 for S3 Cross Region client #4197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
||
public class S3CrossRegionCrtIntegrationTest extends S3CrossRegionAsyncIntegrationTestBase { | ||
private static final String BUCKET = temporaryBucketName(S3CrossRegionCrtIntegrationTest.class); | ||
|
||
@BeforeAll | ||
static void setUpClass() { | ||
s3 = s3ClientBuilder().build(); | ||
s3 = s3ClientBuilder().region(Region.AP_SOUTH_1).httpClient(ApacheHttpClient.create()).build(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question: why do we need to set ApacheHttpClient explicitly? If we have to, can we use httpClientBuilder(ApacheHttpClient.builder())
so that the http client can be closed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added by mistake just for testing , removed it now
@@ -0,0 +1,6 @@ | |||
{ | |||
"type": "bugfix", | |||
"category": "AWS SDK for Java v2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: category should be S3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Kudos, SonarCloud Quality Gate passed! |
Motivation and Context
Modifications
Testing
License