-
-
Notifications
You must be signed in to change notification settings - Fork 146
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
Windows file manager and OSX Finder fails on file names with comma #23
Comments
… and override all quoted values with more carefully parsed ones for robustness - and in particular to fix windows client handling of files with comma in name.
containing raw commas to reduce the risk of unexpected side effects. Tested to fix the issue with Finder and Windows explorer.
I found out that the same issue applies for OSX Finder and it can be fixed with the patch in pull request #24. |
Cool you tracked that down. Did you try filenames with or quotes ( Anyway we should add a 'HOTFIX' comment near, so we can clean-up all those client fixes, document them or even make them configurable sometime later. |
We run our own fork of the wsgidav service on a few Linux servers in our grid setups. Thus in principle we could allow almost any characters on the server side, but we enforce some restrictions to prevent side effects when using the files in other contexts. Comma is allowed in file names on Windows as long as you don't use the old FAT16/32 file systems: I'm not 100% sure if the lack of url-encoding paths is actually a violation of the HTTP protocol but AFAICT the header values should be possible to just split on commas and that's not the case then. |
excellent, I will merge then :) btw. I am currently working (low priority) on a python3 port (#4). Is this something you could use? |
…ar10#23 in line with comments on ticket.
I tried to add the latest changes to the pull request - hope it works :-) I'll probably dig into that other issue with semicolon etc. when I find the time but let's just leave it for now. We are bound to python2 for a number of reasons so a python3 version is not urgent for us in any way, but it's always nice to be prepared for the future. |
merged - thanks again! |
One of our users wanted to upload a bunch of files with several exotic characters in file names. We managed to change our own code base to support most except ones with commas.
Apparently the native Microsoft Win 7 WebDAV client does not URL-encode paths passed in the
HTTP_AUTHORIZATION header and that causes troubles with the headerparser regex in http_authenticator.py.
An example HTTP_AUTHORIZATION value would be
The regexp headerparser thus splits after the comma in /test-enc/a,b.txt causing auth errors like:
Testing the same with the cadaver client works and debug show that the paths get urlencoded there.
I'll see if I can provide a server side hotfix to address it.
The text was updated successfully, but these errors were encountered: