Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

NextKeyMarker missing in S3.listObjects response #53

Closed
gramakri opened this Issue · 5 comments

4 participants

@gramakri

http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3/Client.html#listObjects-property should provide a NextKeyMarker property when IsTruncated is true. There is no such property in the result.

@trevorrowe
Owner

The issue appears to be the documentation is incorrect. listObjects will not actually return a netKeyMarker. When the response is truncated, then you will have to grab the key from the last returned contents entry:

nextKeyMarker = data.Contents[data.Contents.length - 1]

I will update the documentation. Lets leave this issue open until the doc changes have been made. Thank you for reporting this issue.

@lsegal lsegal closed this in b2fcfea
@gramakri

nextKeyMarker = data.Contents[data.Contents.length - 1].Key i guess

@geuis

The documentation still has not been updated, http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/frames.html#!AWS/S3.html. Still says a NextMarker property should be returned, but it is not.

@lsegal lsegal reopened this
@lsegal
Owner

The previous fix to this was a manual change to our local docs that were (at the time) hardcoded in the SDK. We've since moved to pulling docs directly from an upstream source, and it looks like the docs have not been fixed there. I will re-open this and make sure this is fixed upstream.

@lsegal
Owner

I am going to close this since the docs have been updated to indicate that NextMarker may not always be present, in which case the last key should be used.

@lsegal lsegal closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.