-
Notifications
You must be signed in to change notification settings - Fork 35
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
B-21937: Allow Doc Uploads/Downloads with Commas #14509
base: integrationTesting
Are you sure you want to change the base?
Conversation
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.
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 you also be updating pkg/storage/test/s3.go
?
@danieljordan-caci I saw that. I think that is supposed to mirror the actual Presigned URL method for S3. Ill update it. |
That file has been updated. |
B-21937
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