Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fully implement List Objects V2 with pagination response elements #424

Merged
merged 4 commits into from
Apr 17, 2019

Conversation

kherock
Copy link
Collaborator

@kherock kherock commented Mar 25, 2019

Resolves #110. This implements "starts-after" for GET Bucket v2 as well all pagination-related response data for both the v1 and v2 APIs. This also fixes the behavior for "marker"/"starts-after" (they erroneously require a key starting with the marker to exist in order to work properly).

I also ended up doing some significant refactoring to the tests around listObjects since they weren't very strict and also ran very slowly (it actually isn't necessary to generate 1000+ objects to make adequate test cases most of the time).

This doesn't impact any existing behavior, but does fix a minor
regression in accuracy caused by switching away from xml2js.
"starts-after" for GET Bucket v2, and all pagination-related response data is unimplemented. Also, the current
behavior for "marker"/"starts-after" erroneously requires a key starting
with the marker to exist to work properly.

This also removes a few redundant tests relating to listObjects.
@kherock kherock changed the title Implement the result of List Objects V2 with pagination response elements Fully implement List Objects V2 with pagination response elements Mar 25, 2019
@kherock kherock merged commit be12af8 into master Apr 17, 2019
@kherock kherock deleted the list-objects-pagination branch April 17, 2019 22:37
@leontastic
Copy link
Collaborator

@kherock Heroic effort man keep it up 💪

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support NextMarker for listObjects and NextContinuationToken for listObjectsV2
2 participants