-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
feat: use url encoding type for list calls #14010
feat: use url encoding type for list calls #14010
Conversation
packages/storage/src/providers/s3/utils/client/s3data/listObjectsV2.ts
Outdated
Show resolved
Hide resolved
packages/storage/__tests__/providers/s3/apis/internal/list.test.ts
Outdated
Show resolved
Hide resolved
const decodeEncodedElements = ( | ||
listOutput: ListObjectsV2Output, | ||
): ListObjectsV2Output => { | ||
if (listOutput.EncodingType !== 'url') { |
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.
Can this be not url
if we are the ones setting this in first place?
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 think it's highly unlikely, but I'd rather be safe.
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.
Looks good to me!
Description of changes
url
for list requests.Issue #, if available
Description of how you validated changes
Checklist
yarn test
passesChecklist for repo maintainers
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.