Fix ListObjectParts to list properly all parts - closes #4322

This commit is contained in:
Remco Verhoef
2017-05-11 15:07:52 -07:00
committed by Harshavardhana
parent 52122c0309
commit 9c50a9f567
2 changed files with 37 additions and 2 deletions
+2 -2
View File
@@ -649,7 +649,7 @@ func fromGCSMultipartKey(s string) (key, uploadID string, partID int, err error)
key = unescape(parts[1])
uploadID = parts[3]
uploadID = parts[2]
partID, err = strconv.Atoi(parts[3])
if err != nil {
@@ -728,7 +728,7 @@ func (l *gcsGateway) ListObjectParts(bucket string, key string, uploadID string,
isTruncated := false
it.PageInfo().Token = toGCSMultipartKey(key, uploadID, partNumberMarker)
it.PageInfo().Token = toGCSPageToken(toGCSMultipartKey(key, uploadID, partNumberMarker))
it.PageInfo().MaxSize = maxParts
nextPartnumberMarker := 0