mirror of
https://github.com/versity/versitygw.git
synced 2026-07-19 22:42:20 +00:00
dc31696e53
Azure's ListContainers Marker parameter requires an opaque internal token (e.g. /accountname/containername) rather than a plain container name, so passing MaxResults and our ContinuationToken directly to the Azure API caused 400 OutOfRangeInput errors. Rework ListBuckets to iterate all Azure pages client-side, skip entries at or before the ContinuationToken (matching the posix backend's "start after" semantics), and stop once MaxBuckets items have been collected, setting ContinuationToken to the last returned bucket name. This avoids using Azure's NextMarker entirely and correctly handles both unpaginated and paginated requests.