File tree Expand file tree Collapse file tree
server/src/main/java/org/eclipse/openvsx/storage Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3030import software .amazon .awssdk .awscore .defaultsmode .DefaultsMode ;
3131import software .amazon .awssdk .regions .Region ;
3232import software .amazon .awssdk .services .s3 .S3Client ;
33+ import software .amazon .awssdk .services .s3 .S3Configuration ;
34+ import software .amazon .awssdk .services .s3 .S3ServiceClientConfiguration ;
3335import software .amazon .awssdk .services .s3 .endpoints .S3EndpointParams ;
3436import software .amazon .awssdk .services .s3 .endpoints .S3EndpointProvider ;
3537import software .amazon .awssdk .services .s3 .model .CopyObjectRequest ;
@@ -133,6 +135,13 @@ private S3Presigner getS3Presigner() {
133135 .region (Region .of (region ))
134136 .credentialsProvider (getCredentialsProvider ());
135137
138+ if (pathStyleAccess ) {
139+ builder = builder .serviceConfiguration (
140+ S3Configuration .builder ()
141+ .pathStyleAccessEnabled (true )
142+ .build ()
143+ );
144+ }
136145 var serviceEndpoint = getServiceEndpoint ();
137146 if (serviceEndpoint != null ) {
138147 builder = builder .endpointOverride (serviceEndpoint );
You can’t perform that action at this time.
0 commit comments