core icon indicating copy to clipboard operation
core copied to clipboard

Internal server error when creating files with special characters / umlauts on windows

Open drhirn opened this issue 14 years ago • 33 comments

Hi,

using IIS7.5 and OC 4.5.1a, I've got problems with files/folder with umlauts. Same problem since 4.0 betas:

  • Creating a new file häuser.txt on the webinterface results in häuser.txt on filelist on webinterface and häuser.txt on filesystem of the server
  • Creating a new file häuser.txt in the filesystem of the server results in häuser.txt in the filesystem an an internal server error (500) on the webinterface

No error when using SLES11 btw., seems definitively related to IIS/Windows.

Thx, Stefan

drhirn avatar Oct 25 '12 11:10 drhirn

I think I have similar issue on Apache (v. 2.2.22-11) and PHP (v. 5.4.4-7) on Debian Wheezy with OC 4.5.1a. I added directory (mounted) and there were polish characters there (ę, ą, ś, ć etc.). Scanning script failed with information in error.log:

PHP Fatal error: Call to a member function getFolder() on a non-object in /var/www/owncloud/apps/files_archive/lib/storage.php on line 45, referer: http://[cut]/?app=files

Now some files from mounted directory are visible in OC and others (I guess - scanned after file with polish characters) are invisible...

abuszta avatar Oct 25 '12 17:10 abuszta

@bartv2 Hey - you did some fixes on encodings in the past. Any idea on this issue? THX

DeepDiver1975 avatar Nov 19 '12 11:11 DeepDiver1975

@drhirn do you have any error logs, i don't have access to IIS.

@abuszta this is a seperate issue, this is some bug in the archive mounter

bartv2 avatar Nov 20 '12 11:11 bartv2

Here are some logs. Nothing very interesting in it. Server get's an "FastCGI Activity Timeout" (PHP) after CPU Usage goes up to 50-80% for a long time.

HTTP Error 500.0 - Internal Server Error C:\php\php-cgi.exe - The FastCGI process exceeded configured activity timeout

http://www.digitalbahn.at/oc/logs.zip

drhirn avatar Nov 21 '12 14:11 drhirn

When the server is Windows 2008 r2, the files with special characters like "££Ö€ßœĚęĘĞĜΣΥΦΩΫΫ" get deleted on the second sync.

MTRichards avatar Dec 13 '12 22:12 MTRichards

@MTRichards @msrex Can you provide me with a VM with Windows/IIS and ownCloud installer? THX

DeepDiver1975 avatar Dec 20 '12 11:12 DeepDiver1975

I don't have a license, but I can provide you access to a running VM in a hosted data center that I use for ownCloud. Will send in email, the instructions are annoying

MTRichards avatar Dec 20 '12 13:12 MTRichards

Update: I have my own Windows based development environment up and running. The server side problem is related to the Windows file system NTFS. I'll digg deeper - there was a pull request some time ago which partially tried to fix NTFS problems.

DeepDiver1975 avatar Jan 05 '13 19:01 DeepDiver1975

Cool you have a VM to work on! I'll follow this thread as I've very same issue.

happysysadm avatar Jan 06 '13 07:01 happysysadm

Hi!

Any news from your test environment? For the moment I corrected most of the filenames before uploading, but I am encountering many other issues, like php-cgi causing regular CPU spikes (probably because I have tens of thousands of files) and I have trouble with the calendar. Also OC interacts better with Firefox than with Internet Explorer... especially drag and drop does'nt work at all on IE.

Any thoughts? Is there a true Windows version ever coming? Sorry for this questions, but I spent lot of time adapting OC to my documents and this is not what I meant it to be.

happysysadm avatar Jan 14 '13 10:01 happysysadm

I'm struggling to get our phpunit test suite up and running - I assume this will take some time - sorry.

In addition I have to say that it looks like twe need to implement a Windows specific layer to access files to make it really clean. And I really don't love to do that. :-(

DeepDiver1975 avatar Jan 14 '13 10:01 DeepDiver1975

Within the comments of https://github.com/owncloud/core/pull/366 @danimo describes the potential solution.

DeepDiver1975 avatar Jan 14 '13 10:01 DeepDiver1975

@DeepDiver1975 : But i and a few hundreds of guys who wants to use OC on their Windows servers would love you for that ;-))

jacotec avatar Jan 20 '13 21:01 jacotec

+1 for fixing this ;)

swiffer avatar Jan 21 '13 13:01 swiffer

https://github.com/owncloud/core/pull/366#issuecomment-12489082

DeepDiver1975 avatar Jan 21 '13 13:01 DeepDiver1975

Just tried umlauts in 4.5.6. Seems to be fine now.

irgsmirx avatar Feb 01 '13 11:02 irgsmirx

@drhirn @jacotec @swiffer @MannyRik please test git master as we incorporated some fixes for Windows server environments. THX

BTW: anybody of you interested in MS Sql-Server suppport as well - please test #1706 - THX

DeepDiver1975 avatar Feb 17 '13 19:02 DeepDiver1975

as i dont know how to build git master i checked out the latest daily build from owncloud.org/releases/daily...

  • creating a folder (ÖÄÜ) results in oau on filesystem
  • if a file with an umlaut is present in filesystem and i reload the owncloud page cpu usage goes up to 30% but the file seems not to be added to mysql / owncloud
  • when i upload a file (FileName.ext) via web interface a file named filename.ext is created

server setup: win server 2012, iis 8, php 5.5alpha5, mysql 5.6.10

swiffer avatar Feb 20 '13 21:02 swiffer

if a file with an umlaut is present in filesystem and i reload the owncloud page cpu u

THX for reminding me of this use case

as i dont know how to build git master i checked out the latest daily build from owncloud.org/releases/daily

valid approach - THX a lot!

DeepDiver1975 avatar Feb 20 '13 22:02 DeepDiver1975

does owncloud make use of capital and small initial letters and recognize file names correctly?

have you updated master to work with the use case specified above?

swiffer avatar Feb 25 '13 19:02 swiffer