Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,12 @@ public boolean hasNext() {
// The response was truncated. Make a new request using the next continuation token to pick up where we
// left off.
String continuationToken = useV2 ? responseV2.nextContinuationToken() : responseV1.nextMarker();

// OpenStack Swift may omit NextMarker for a truncated V1 response.
// Continue from the final key returned in the current page.
if (!useV2 && continuationToken == null && responseV1.isTruncated() && !objects.isEmpty()) {
continuationToken = objects.get(objects.size() - 1).key();
}
updateObjectList(continuationToken);
}
}
Expand Down