-
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
fix(Storage): allowing to set an empty value as prefix for the S3 Key #931
Conversation
Codecov Report
@@ Coverage Diff @@
## master #931 +/- ##
=========================================
Coverage ? 87.48%
=========================================
Files ? 78
Lines ? 3707
Branches ? 684
=========================================
Hits ? 3243
Misses ? 441
Partials ? 23
Continue to review full report at Codecov.
|
8fec4d1
to
81e3937
Compare
I have added unit tests. It seems like there are many more tests missing for Storage.ts |
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.
👍
This pull request has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs. Looking for a help forum? We recommend joining the Amplify Community Discord server |
Issue #, if available:
Fixes #853
Description of changes:
Old implementation does not allow to have NO prefix for requested S3 Resource-Keys at all. When setting customPrefix{public: ''} the customPrefix is being set to 'public/', however the prefix should be an empty string
const x = '' || 'something else'; is equivalent to const y = undefined || 'something else';
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.