Skip to content

Commit 946f693

Browse files
committed
fix: bug in minio constructor when no credential key was provided
1 parent 38ad12c commit 946f693

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
- All notable changes to this project will be documented in this file.
66
- jacoco aggregate
77

8+
## version-94.2.53b
9+
- up the timeout timers of minio httpClient
10+
811
## version-94.2.51
912
- fix : webservice table images were deleted by batch in multinod mode
1013
- mapping vertical optimization

arc-utils/src/main/java/fr/insee/arc/utils/minio/S3Template.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ public S3Template(String s3ApiUri, String bucket, String directory, String acces
6666
this.bucket = bucket;
6767
this.directory = directory;
6868

69+
if (isS3Off())
70+
{
71+
return;
72+
}
73+
6974
System.setProperty(MINIO_ACCESS_KEY, accessKey);
7075
System.setProperty(MINIO_SECRET_KEY, secretKey);
7176

@@ -76,6 +81,11 @@ public S3Template(String s3ApiUri, String bucket, String directory, String acces
7681
this.bucket = bucket;
7782
this.directory = directory;
7883

84+
if (isS3Off())
85+
{
86+
return;
87+
}
88+
7989
System.setProperty(AWS_ACCESS_KEY_ID, accessKey);
8090
System.setProperty(AWS_SECRET_ACCESS_KEY, secretKey);
8191
System.setProperty(AWS_SESSION_TOKEN, sessionToken);

0 commit comments

Comments
 (0)