-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Uploading a file with a #
in its filename fails, and deleting the file does not work.
It is related to: #982 (Files: broken URL for files with slash)
Steps to reproduce the problem
- Create the file:
$ echo 'test' > prefix#suffix.txt
- Create a new draft in Zenodo
- Upload the file
- The uploaded file appears as failed in the UI and the 3rd network request fails because it only includes the part of the filename before the
#
character:
- Without reloading the page, clicking on the delete icon spins forever without any network request.
- Reloading the page, the file appears as "Pending"
- Clicking on the delete icon removes the file from the UI, but the network request fails because it only includes the part of the filename before the
#
character:
Solution
Since the filename is part of the URL (as opposed to the payload), the #
character has a special meaning and should be escaped.
Tested for a support case by percent-encoding the filename, and therefore replacing #
and %23
and it fixed the problem.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working