"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
s3: fix listing loop when using v2 listing on v1 server
Nick Craig-Woodab849b3613fe
diff --git a/backend/s3/s3.go b/backend/s3/s3.goindex 5fad59ae5..568805a6c 100644--- a/backend/s3/s3.go+++ b/backend/s3/s3.go@@ -3195,6 +3195,9 @@ func (ls *v2List) List(ctx context.Context) (resp *s3.ListObjectsV2Output, versiif err != nil {return nil, nil, err}+ if aws.BoolValue(resp.IsTruncated) && (resp.ContinuationToken == nil || *resp.ContinuationToken == "") {+ return nil, nil, errors.New("s3 protocol error: received listing v2 with IsTruncated set and no ContinuationToken. Should you be using `--s3-list-version 1`?")+ }ls.req.ContinuationToken = resp.NextContinuationTokenreturn resp, nil, nil}