From 141f8bebc9dfdf3a1744213df1020c640c031a17 Mon Sep 17 00:00:00 2001 From: David Gault Date: Thu, 4 Apr 2024 16:07:29 +0100 Subject: [PATCH] AWS client: Don't set region when endpoint configured --- src/loci/formats/S3FileSystemStore.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/loci/formats/S3FileSystemStore.java b/src/loci/formats/S3FileSystemStore.java index 7ad06af..cad86d6 100644 --- a/src/loci/formats/S3FileSystemStore.java +++ b/src/loci/formats/S3FileSystemStore.java @@ -102,7 +102,6 @@ private void setupClient() { client = AmazonS3ClientBuilder.standard() .withEndpointConfiguration(new AwsClientBuilder.EndpointConfiguration(endpoint, "auto")) .withPathStyleAccessEnabled(true) - .withRegion(Regions.DEFAULT_REGION) // Ignored but required by the client .withCredentials(new AWSStaticCredentialsProvider(new AnonymousAWSCredentials())).build(); } catch (Exception e) { LOGGER.info("Exception caught while constructing S3 client");