B-21937: Allow Doc Uploads/Downloads with Commas #14547
Open
+112
−10
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
B-21937
INT PR
Summary
Users were not able to view nor download files uploaded with commas in their filenames.
This was because if there was a comma in the file name then it was saved into S3 with the comma in the file name and in the DB with the comma in the file name.
This means whenever we would send an HTTP request to fetch the file from S3 the comma would be in the url causing an issue.
To solve this issue the filename within the content disposition needed to be wrapped in double quotes.
Is there anything you would like reviewers to give additional scrutiny?
this article explains more about the approach used.
Verification Steps for the Author
These are to be checked by the author.
Verification Steps for Reviewers
These are to be checked by a reviewer.
Setup to Run the Code
How to test
Setup your local to use S3 as storage.
How to setup to use S3 for storage
Frontend
officeApp
class or custommin-width
styling is used to hide any states the would not be visible to the user.Backend
Database
Any new migrations/schema changes:
Screenshots