Skip to content
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

double-escaping of file names when using the download button from the file tree #5784

Closed
bribroder opened this issue Sep 30, 2020 · 1 comment

Comments

@bribroder
Copy link

We noticed that trying to download a file from a folder with a space in the name throws a 404--some users report this used to work and stopped recently. It appears that the folder names are being escaped twice, so

https://jupyter.com/user/bribroder/files/Folder Name/space test.csv?download=1

Is escaped to

https://jupyter.com/user/bribroder/files/Folder%2520Name/space%2520test.csv?download=1

%25 is the escaped version of %, and %20 is the escaped version of a space

The behavior only occurs from the tree view of a folder, by checking the box next to the file and clicking the download button:

image

opening the file in 'edit' mode and downloading from the File menu works correctly.

image

@bribroder
Copy link
Author

Fixed by PR #5720

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant