Merge c8cae15cd740a958556858a81819a1192e30b092 into 0b9671313b14ffe839ecbd7dd2ae5ac7f6f05db8

This commit is contained in:
Yuval Lifshitz 2025-04-11 19:30:08 +05:30 committed by GitHub
commit af5bfe9626
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3472,9 +3472,9 @@ func setQuirks(opt *Options) {
listObjectsV2 = false
useAlreadyExists = false // untested
case "Ceph":
listObjectsV2 = false
listObjectsV2 = true
virtualHostStyle = false
urlEncodeListings = false
urlEncodeListings = true
useAlreadyExists = true
case "ChinaMobile":
listObjectsV2 = false
@ -4289,9 +4289,8 @@ func (f *Fs) list(ctx context.Context, opt listOpt, fn listFn) error {
// URL encode the listings so we can use control characters in object names
// See: https://github.com/aws/aws-sdk-go/issues/1914
//
// However this doesn't work perfectly under Ceph (and hence DigitalOcean/Dreamhost) because
// it doesn't encode CommonPrefixes.
// See: https://tracker.ceph.com/issues/41870
// This is working in Ceph since v14.2.7 (see: https://tracker.ceph.com/issues/43161)
// but not tested for DigitalOcean/Dreamhost
//
// This does not work under IBM COS also: See https://github.com/rclone/rclone/issues/3345
// though maybe it does on some versions.