Skip to content

Commit dbdee8f

Browse files
committed
Fixes #1360 - paging not working correctly for multipart command
When listing multipart uploads over multiple pages, "key-marker" and "upload-id-marker" are the correct names for the query parameters to go to the next page.
1 parent a911b88 commit dbdee8f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

S3/S3.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1411,22 +1411,22 @@ def get_multipart_streaming(self, uri, uri_params=None, limit=-1):
14111411
next_key = getTextFromXml(xml_data, "NextKeyMarker")
14121412
if not next_key:
14131413
next_key = upload_list[-1]["Key"]
1414-
uri_params['KeyMarker'] = next_key
1414+
uri_params['key-marker'] = next_key
14151415

14161416
upload_id_marker = getTextFromXml(
14171417
xml_data, "NextUploadIdMarker")
14181418
if upload_id_marker:
1419-
uri_params['UploadIdMarker'] = upload_id_marker
1420-
elif 'UploadIdMarker' in uri_params:
1419+
uri_params['upload-id-marker'] = upload_id_marker
1420+
elif 'upload-id-marker' in uri_params:
14211421
# Clear any pre-existing value
1422-
del uri_params['UploadIdMarker']
1422+
del uri_params['upload-id-marker']
14231423
else:
14241424
# Unexpectedly, the server lied, and so the previous
14251425
# response was not truncated. So, no new key to get.
14261426
yield False, upload_list
14271427
break
14281428
debug("Listing continues after '%s'" %
1429-
uri_params['KeyMarker'])
1429+
uri_params['key-marker'])
14301430
else:
14311431
yield truncated, upload_list
14321432
break

0 commit comments

Comments
 (0)