![Florent Vennetier (OpenIO)](/assets/img/avatar_default.png)
Before this commit, V2 listing parameters ('start-after', 'continuation-token' and 'fetch-owner') were just ignored, making some S3 clients return errors, or handle paging badly. V2 listing is selected by passing 'list-type=2' in query string. 'marker' is replaced by either 'start-after' or 'continuation-token'. This commit wraps 'start-after' and 'continuation-token' in 'marker', which is passed to swift. 'NextContinuationToken' is a base64 encoding of the last returned object, so it is opaque to the client. Change-Id: I23bf83cb8bbaf4c4935bf6b56791051c032c688c
34 lines
930 B
Plaintext
34 lines
930 B
Plaintext
include "common.rnc"
|
|
|
|
start =
|
|
element ListBucketResult {
|
|
element Name { xsd:string },
|
|
element Prefix { xsd:string },
|
|
(
|
|
(
|
|
element Marker { xsd:string },
|
|
element NextMarker { xsd:string }?
|
|
) | (
|
|
element NextContinuationToken { xsd:string }?,
|
|
element ContinuationToken { xsd:string }?,
|
|
element StartAfter { xsd:string }?,
|
|
element KeyCount { xsd:int }
|
|
)
|
|
),
|
|
element MaxKeys { xsd:int },
|
|
element EncodingType { xsd:string }?,
|
|
element Delimiter { xsd:string }?,
|
|
element IsTruncated { xsd:boolean },
|
|
element Contents {
|
|
element Key { xsd:string },
|
|
element LastModified { xsd:dateTime },
|
|
element ETag { xsd:string },
|
|
element Size { xsd:long },
|
|
element Owner { CanonicalUser }?,
|
|
element StorageClass { StorageClass }
|
|
}*,
|
|
element CommonPrefixes {
|
|
element Prefix { xsd:string }
|
|
}*
|
|
}
|