Skip to content

Case sensitive user name folders causing files to disappear #1314

Closed

Description

@florianbader

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.

Activity

  1. florianbader commented on Jan 27, 2013

    @florianbader
    Author

    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.

  2. VicDeo commented on Nov 30, 2013

    @VicDeo
    Contributor

    should be fixed in 5.0.11 with #4654

  3. locked as resolved and limited conversation to collaborators on Aug 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions