Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[media] File download should retrieve decoded path #6137

Conversation

jesscall
Copy link
Contributor

@jesscall jesscall commented Mar 4, 2020

Brief summary of changes

This PR is related to issue #6136. This PR aims to fix a bug that was experienced by a CCNA user when trying to download a file that had a '&' in the name. SQL encodes strings containing special chars and thus we need to use the decoded file names in the path when downloading files from media module.

Issuing this fix to the 21.0-release branch as it is affecting our users and current instance on CCNA.

Testing instructions (if applicable)

  1. Upload a file to media module that contains special chars (&, >, <, etc)
  2. Try downloading the file and ensure that you do not receive an error.

Link(s) to related issue(s)

@jesscall jesscall added Bug PR or issue introducing/requiring bug fixes (not mutually exclusive with the Feature label) Beginner Friendly PR or Issue appears to be easy for someone to use to familiarize themselves with LORIS labels Mar 4, 2020
@driusan
Copy link
Collaborator

driusan commented Mar 4, 2020

21 isn't supported anymore and this doesn't look like an issue that would prevent updating, can you send this to 22 or 23?

@ridz1208
Copy link
Collaborator

ridz1208 commented Mar 4, 2020

@driusan what if it's needed for 21 ?

@johnsaigle johnsaigle added Discussion Required PR or issue awaiting the resolution of a discussion between all involved parties 23.0.0-testing and removed 23.0.0-testing labels May 27, 2020
@johnsaigle
Copy link
Contributor

It would be nice to get this into 23 @ridz1208 @driusan

@ridz1208 ridz1208 changed the base branch from 21.0-release to 22.0-release May 28, 2020 14:07
@ridz1208
Copy link
Collaborator

@johnsaigle I can put it in 22. can you just review it please ?

@driusan driusan merged commit 8a877df into aces:22.0-release Jun 1, 2020
laemtl pushed a commit to laemtl/Loris that referenced this pull request Jun 2, 2020
This aims to fix a bug that was experienced by a CCNA user when trying to download a file that had a '&' in the name. SQL encodes strings containing special chars and thus we need to use the decoded file names in the path when downloading files from media module.

    Resolves aces#6136
laemtl pushed a commit to laemtl/Loris that referenced this pull request Jun 2, 2020
This aims to fix a bug that was experienced by a CCNA user when trying to download a file that had a '&' in the name. SQL encodes strings containing special chars and thus we need to use the decoded file names in the path when downloading files from media module.

    Resolves aces#6136
@ridz1208 ridz1208 added this to the 22.0.2 milestone Jun 9, 2020
laemtl pushed a commit to laemtl/Loris that referenced this pull request Jun 11, 2020
This aims to fix a bug that was experienced by a CCNA user when trying to download a file that had a '&' in the name. SQL encodes strings containing special chars and thus we need to use the decoded file names in the path when downloading files from media module.

    Resolves aces#6136
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Beginner Friendly PR or Issue appears to be easy for someone to use to familiarize themselves with LORIS Bug PR or issue introducing/requiring bug fixes (not mutually exclusive with the Feature label) Discussion Required PR or issue awaiting the resolution of a discussion between all involved parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[media] Downloading file with special characters in name leads to error: Failed - no file
4 participants