Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

s3: set useAlreadyExists to false for Alibaba OSS

zjx2064ed9b175f3f
diff --git a/backend/s3/s3.go b/backend/s3/s3.go
index 0d9ab396c..a1379da3d 100644
--- a/backend/s3/s3.go
+++ b/backend/s3/s3.go
@@ -3628,7 +3628,7 @@ func setQuirks(opt *Options) {
useUnsignedPayload = false // AWS has trailer support which means it adds checksums in the trailer without seeking
case "Alibaba":
useMultipartEtag = false // Alibaba seems to calculate multipart Etags differently from AWS
- useAlreadyExists = true // returns 200 OK
+ useAlreadyExists = false // returns BucketAlreadyExists
case "HuaweiOBS":
// Huawei OBS PFS is not support listObjectV2, and if turn on the urlEncodeListing, marker will not work and keep list same page forever.
urlEncodeListings = false