You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Case sensitive user name folders causing files to disappear #1314
I'm using ownCloud 4.5.6 on a Debian machine and had the problem that my files disappeared in the web interface after an update (I have no idea which update, sorry) but were still available on the file system and also in the database.
Browsing to /remote.php/webdav/ showed me an empty list and calling the Javascript function scanFiles() on the Files page didn't find any files either.
I checked the chmod settings, but there were still no files. When going through the data folder, I noticed that for my user Rio (notice the capital letter), there were suddenly two folders: Rio and rio.
After removing the lower case user name folder and refreshing the Files page, it recreated the lower case folder. I removed the lower case folder again and created a link from rio to Rio which solved my problem: WebDav showed me my files again and after calling scanFiles() the Files page also updated and my files were back.
The database contains the capitalized user name in the users and the fscache table and both tables have a case insensitive collation.
It seems like the Files page is screwing something up, because after removing the link to the correct folder, WebDav works fine but after refreshing the Files page, it creates the lower case folder again and WebDav stops working.
It seems that WebDAV is case sensitive and scanFiles isn't, because I took a look at my oc_username cookie which had my user name in lower case. The oc_fscache table had changed all the entries I synced with my local sync client since yesterday to a lower case path and all the pathes with my capitalized user name in it, we're not found by WebDAV and therefore my sync client at all.
After capitalizing the first letter in my oc_username cookie and running scanFiles again, all the oc_fscache table entries changed back to the capitalized user name and WebDAV and my sync client started to work normally again.
Activity
florianbader commentedon Jan 27, 2013
An update on this one:
It seems that WebDAV is case sensitive and scanFiles isn't, because I took a look at my oc_username cookie which had my user name in lower case. The oc_fscache table had changed all the entries I synced with my local sync client since yesterday to a lower case path and all the pathes with my capitalized user name in it, we're not found by WebDAV and therefore my sync client at all.
After capitalizing the first letter in my oc_username cookie and running scanFiles again, all the oc_fscache table entries changed back to the capitalized user name and WebDAV and my sync client started to work normally again.
VicDeo commentedon Nov 30, 2013
should be fixed in 5.0.11 with #4654