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
IIS + can`t download/open files with special characters #6267
Comments
@ringmaster Can you reproduce that? |
Yes, I can reproduce this on OC6. Looking into it now. |
This issue has to do with how IIS handles url-encoded URLs before passing them on to FastCGI apps. Normally, the URLs (the PATH_INFO part) are decoded before they're forwarded to FastCGI (including PHP). Because of this, UTF-8 URLs that include the downloadable file within the path (not the querystring) are decoded and passed on to PHP. But IIS decodes URLs only to ASCII by default. This results in incorrect path URLs being forwarded to the PHP CGI, which is why ownCloud is unable to find files with UTF-8 characters for download. By contrast, IIS does not decode the querystring of URLs before passing them to the FastCGI apps. This is why clicking on the download link in the file list (which generates a different URL that includes the filename as part of the querystring) is successful. To fix this issue, IIS must be convinced to decode UTF-8 URLs as UTF-8, and not ASCII, before passing them on to the PHP CGI application. I was able to successfully accomplish this by changing a registry setting on the IIS server, which sets the encoding for the REQUEST_URI and PATH_INFO server variables to UTF-8. Follow these steps:
After completing these steps, UTF-8 URLs should be forwarded correctly to PHP, and the encoded filenames should properly download. @ForumSchlampe please try this fix and report your results. This could be very helpful to others who have a similar issue. |
@ringmaster Maybe there should be a hint in the install documentation to enable this by default for Windows/IIS installations....think this should be highly recomended. |
@ringmaster awesome. Do you think we can add this to the documentation? |
I have a PHP script that uploads docs manually to moodle, |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Expected behaviour
Single click on a file with special characters in the webUI should start the download
-> Works for files without any special character (like german umlauts)
Actual behaviour
Single click on a file with or without Special characters should open/start the download.
Downloadbutton works for such files but this isnt handy...and users got confused cause some files work this way and others not.
Steps to reproduce
Server configuration
IIS 7.5
PHP 5.5
Windows Server 2008 R2
MySQL
Internal Storage (NTFS)
Client configuration
OS: Windows 7, OSX
Browser: IE10/11, Firefox, Opera, Chrome, Safari
Operating system:
Windows 7
OSX
The text was updated successfully, but these errors were encountered: