Skip to content

Commit

Permalink
Potential Fix to Forever Loading
Browse files Browse the repository at this point in the history
Seems as if it required for us to explicitly state that an anonymous user was accessing the bucket. Probably attempted some form of login continuously until it failed to anonymous.
  • Loading branch information
AvocadoMoon committed Apr 30, 2024
1 parent b38d604 commit 13d07ca
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ public void createS3Client(String url, HashMap<String, String> credentials, Hash
this.s3ObjectKey = pathSubStrings[2];
this.bucketName = pathSubStrings[1];
s3ClientBuilder.withPathStyleAccessEnabled(true);
s3ClientBuilder.withCredentials(new AWSStaticCredentialsProvider(new AnonymousAWSCredentials()));
s3ClientBuilder.withEndpointConfiguration(new AwsClientBuilder.EndpointConfiguration(uri.getScheme() + "://" + uri.getAuthority(), "site2-low"));
this.s3Client = s3ClientBuilder.build();
logger.debug("Created S3 Client With Legacy URL");
Expand Down

0 comments on commit 13d07ca

Please sign in to comment.