Merge pull request #18109 from bennywilbanks/benny/i18107

Support path style ObjectRestore requests
This commit is contained in:
David Kocher
2026-05-26 14:41:50 +02:00
committed by GitHub
@@ -108,6 +108,7 @@ public class Glacier implements Restore {
private AmazonS3 client(final Path container) throws BackgroundException {
final AmazonS3ClientBuilder builder = AmazonS3ClientBuilder.standard()
.withClientConfiguration(configuration)
.withPathStyleAccessEnabled(HostPreferencesFactory.get(session.getHost()).getBoolean("s3.bucket.virtualhost.disable"))
.withCredentials(S3CredentialsStrategy.toCredentialsProvider(session.getAuthentication().get()));
final Location.Name region = this.getRegion(container);
if(S3Session.isAwsHostname(session.getHost().getHostname(), false)) {