-
Notifications
You must be signed in to change notification settings - Fork 159
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
Download result in 404 if file name contains hash(a.k.a. #) (also when using the webdav path) #10810
Comments
Hey @mmis1000 - thank you for the bug report! I can reproduce this with your steps on |
@PrajwolAmatya @Salipa-Gurung |
Quite weird behaviour: when trying to download a file
Now my first thought was, that this is a dependency issue with |
Meh, ok, in |
@mmis1000 I've created a pull request to fix the issue for the next ocis v5 release. Can you please tell me what you mean by |
I mean the one in detail panel. |
Thanks for clarifying! This URL is not for a browser download. It is for webdav clients like e.g. cyberduck/mountainduck, dolphin, etc. For a browser download you need to use the |
Fixed via #10813 |
It will still be affected though, cause you can add any dav directory to windows explore or other tools. And folder name that contain '#', '%20' ...etc will break. |
With the fix in #10813, the file/folder containing I tried with other cases as well, to download file with a "%" in its name, ScreenshotI also tried to download file with filename Tested on latest web master and also in web stable-8.0. Is this the expected behavior? |
Yep, you're right! Made #10817 to fix that as well. Tested it successfully in Cyberduck. |
Seems like we can't enforce other filenames. I tried to escape the file names as well, but the resulting file names remained unchanged. |
So it's a browser thing and expected ones? |
yep |
Describe the bug
Download and the webdav in detail from web won't work if the file or folder contains
#
in its file name.Steps to reproduce
#
in file name or rename a existing one to a name that contains#
Expected behavior
You downloaded the file
Actual behavior
Error occurred and 404 show up in web requests
Setup
All default setup.
Version 5.0.2
Additional context
it occurred to me when I am trying to upload the osu beamap pack
Beatmap Pack #1114.7z
which happens to have a hash in its filenameedited
You probably shouldn't treat file path as url path directly here
/valid/file#1.zip
is a valid file path but not a valid url path,#
need to be encoded as%23
or it will be treated as url hash./valid%20.txt
is also a valid path but download won't work either because it will be decoded as/valid .txt
if you do not encode before use it as url path.The text was updated successfully, but these errors were encountered: