-
Notifications
You must be signed in to change notification settings - Fork 391
fix(signed-url): replace encodeURIComponent with custom encoding function #905
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #905 +/- ##
==========================================
+ Coverage 95.36% 95.39% +0.03%
==========================================
Files 11 11
Lines 1230 1239 +9
Branches 307 308 +1
==========================================
+ Hits 1173 1182 +9
Misses 29 29
Partials 28 28
Continue to review full report at Codecov.
|
55945ab to
a468029
Compare
|
It makes me really uncomfortable to see custom non-standard encoding implementation. Where is the documentation that explains how the encoding should work? It should be mentioned in the code comment if it exists. |
frankyn
left a comment
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.
Add a system test to confirm with GCS backend. Other than that LGTM.
bcoe
left a comment
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.
thanks for the comment.
frankyn
left a comment
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.
Thanks @jkwlui!
Fixes #859 🦕
Made changes to how signed URLs (v2 and v4) are url-encoded:
encodeURIComponentdoes not encode the following characters:! * ' ( ), which should have been encoded./in the object's (file) name should not have been encoded. (caused issue fix(deps): update dependency date-and-time to ^0.10.0 #857)