libs3 icon indicating copy to clipboard operation
libs3 copied to clipboard

Incomplete listing on Backblaze S3

Open martinprikryl opened this issue 3 years ago • 1 comments

Contrary to AWS, Backblaze adds IsTruncated (and others) only after the CommonPrefixes and Contents. It's pagination is 1000, what is a multiple of libs3's MAX_COMMON_PREFIXES. So if you have prefixes-only listing, you get 125 callbacks with 32 commonPrefixes in each. None of them will have valid isTruncated yet. And in listBucketCompleteCallback, where isTruncated is finally known, both contentsCount and commonPrefixesCount will be zero, and the callback will not be triggered.

martinprikryl avatar Oct 08 '21 14:10 martinprikryl

Note that there's is probably a similar problem in multipart.c.

martinprikryl avatar Oct 08 '21 14:10 martinprikryl