I am listing all the available versions of a particular key on s3. Two issues:
- The first 1000 version ids that I obtain are not valid "NoSuchVersion". The remaining version ids work fine.
- The IsTruncated flag never goes back to false once I loop back.
Issue #2 isn't a big deal for me. But #1 is a show stopper.
Here is a code snippet:
Model::ListObjectVersionsRequest object_request;
object_request.WithBucket(this->bucket_name);
object_request.WithKeyMarker( ... + ".json");
do {
auto list_versions_outcome = this->s3_client->ListObjectVersions(object_request);
//...
//prepare for next iteration
object_request.SetVersionIdMarker(list_versions_outcome.GetResult().GetNextVersionIdMarker());
} while (keep_looking);
thoughts?