-
Notifications
You must be signed in to change notification settings - Fork 5
Support larger list of version and AWS API v4 #3
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -32,8 +32,10 @@ function getVersion(params) { | |
| s3DataContents = s3DataContents.concat(contents.DeleteMarkers); | ||
| if (data.IsTruncated) { | ||
| params.VersionIdMarker = contents.NextVersionIdMarker; | ||
| params.KeyMarker = contents.NextVersionIdMarker; | ||
| recursiveCall(params); | ||
| } else { | ||
| s3DataContents = s3DataContents.filter((elm) => { return elm.Size > 0 }) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We cannot do this - this will remove items which need to be deleted. |
||
| deferred.resolve(s3DataContents); | ||
| } | ||
| } | ||
|
|
@@ -129,7 +131,9 @@ function getVersion(params) { | |
| runDeltaOnly = params.runDelta || false; | ||
| } | ||
|
|
||
| s3 = new AWS.S3(); | ||
| s3 = new AWS.S3( | ||
| {signatureVersion: 'v4'} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was under the impression AWS SDK handles this automatically, although I may have missed something - can you explain why we need to specify the signatureVersion to v4? |
||
| ); | ||
|
|
||
| var deferred = q.defer(); | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this line not be
params.KeyMarker = contents.NextKeyMarker;