mirror of
https://github.com/minio/minio.git
synced 2025-01-11 15:03:22 -05:00
s3: Encode continuation & next continuation tokens when asked (#8292)
When url encoding is passed in v2 listing handler, continuationToken and nextContinuationToken needs to be encoded. The reason is that both represents an object name/prefix in Minio server and it could contain a character unsupported by XML specification.
This commit is contained in:
parent
77dc2031a2
commit
a790877c01
@ -498,8 +498,8 @@ func generateListObjectsV2Response(bucket, prefix, token, nextToken, startAfter,
|
||||
data.Delimiter = s3EncodeName(delimiter, encodingType)
|
||||
data.Prefix = s3EncodeName(prefix, encodingType)
|
||||
data.MaxKeys = maxKeys
|
||||
data.ContinuationToken = token
|
||||
data.NextContinuationToken = nextToken
|
||||
data.ContinuationToken = s3EncodeName(token, encodingType)
|
||||
data.NextContinuationToken = s3EncodeName(nextToken, encodingType)
|
||||
data.IsTruncated = isTruncated
|
||||
for _, prefix := range prefixes {
|
||||
var prefixItem = CommonPrefix{}
|
||||
|
Loading…
Reference in New Issue
Block a user