Skip to content

Commit 2563650

Browse files
committed
feat(s3): Update S3FileSystemFactory to use user info in URI creation
1 parent 02340bd commit 2563650

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/dev/themeinerlp/bluemap/s3/storage/S3FileSystemFactory.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ public static S3Fs build(S3Configuration cfg) {
3838
// AWS S3 – the provider uses the default region/credentials chain
3939
PROVIDER = new S3FileSystemProvider();
4040
System.setProperty(AWS_REGION_KEY, cfg.getRegion() != null ? cfg.getRegion() : DEFAULT_AWS_REGION);
41-
uri = URI.create("s3://" + cfg.getBucketName());
41+
String userInfo = buildUserInfo(cfg);
42+
uri = new URI("s3", userInfo,"/" + cfg.getBucketName(), null, null);
4243
}
4344
FileSystem fs = PROVIDER.getFileSystem(uri);
4445
return new S3Fs(fs, uri);

0 commit comments

Comments
 (0)