From b26d5da84ed5741b721f6f1bc0c258fe97df8a5e Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Tue, 27 Oct 2020 17:37:31 +0000 Subject: [PATCH] s3: stop the S3 library doing path cleaning to use keys called "." #4704 --- backend/s3/s3.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/s3/s3.go b/backend/s3/s3.go index ce1d6e8e5..181002c06 100644 --- a/backend/s3/s3.go +++ b/backend/s3/s3.go @@ -1500,6 +1500,9 @@ func s3Connection(opt *Options) (*s3.S3, *session.Session, error) { awsConfig.WithEndpoint(opt.Endpoint) } + // Allow URI with "." etc + awsConfig.DisableRestProtocolURICleaning = aws.Bool(true) + // awsConfig.WithLogLevel(aws.LogDebugWithSigning) awsSessionOpts := session.Options{ Config: *awsConfig,