mirror of
https://github.com/iterate-ch/cyberduck.git
synced 2026-05-26 19:10:49 +00:00
Merge pull request #18109 from bennywilbanks/benny/i18107
Support path style ObjectRestore requests
This commit is contained in:
@@ -108,6 +108,7 @@ public class Glacier implements Restore {
|
|||||||
private AmazonS3 client(final Path container) throws BackgroundException {
|
private AmazonS3 client(final Path container) throws BackgroundException {
|
||||||
final AmazonS3ClientBuilder builder = AmazonS3ClientBuilder.standard()
|
final AmazonS3ClientBuilder builder = AmazonS3ClientBuilder.standard()
|
||||||
.withClientConfiguration(configuration)
|
.withClientConfiguration(configuration)
|
||||||
|
.withPathStyleAccessEnabled(HostPreferencesFactory.get(session.getHost()).getBoolean("s3.bucket.virtualhost.disable"))
|
||||||
.withCredentials(S3CredentialsStrategy.toCredentialsProvider(session.getAuthentication().get()));
|
.withCredentials(S3CredentialsStrategy.toCredentialsProvider(session.getAuthentication().get()));
|
||||||
final Location.Name region = this.getRegion(container);
|
final Location.Name region = this.getRegion(container);
|
||||||
if(S3Session.isAwsHostname(session.getHost().getHostname(), false)) {
|
if(S3Session.isAwsHostname(session.getHost().getHostname(), false)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user