-
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?
Conversation
Support larger list of version and AWS API v4
|
This is a small problem with this PR. I will make a better version later. |
| s3DataContents = s3DataContents.concat(contents.DeleteMarkers); | ||
| if (data.IsTruncated) { | ||
| params.VersionIdMarker = contents.NextVersionIdMarker; | ||
| params.KeyMarker = contents.NextVersionIdMarker; |
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;
|
|
||
| s3 = new AWS.S3(); | ||
| s3 = new AWS.S3( | ||
| {signatureVersion: 'v4'} |
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.
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?
| params.KeyMarker = contents.NextVersionIdMarker; | ||
| recursiveCall(params); | ||
| } else { | ||
| s3DataContents = s3DataContents.filter((elm) => { return elm.Size > 0 }) |
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.
We cannot do this - this will remove items which need to be deleted.
|
Sorry about the delay in reviewing. I've made some comments, and also fixed up tests to run on travis. |
Support larger list of version and AWS API v4