Skip to content

Encryption migration setupFS doesn't work properly #14775

Closed

Description

@PVince81

Steps

  1. Setup LDAP on OC 7.0.4
  2. Enable encryption
  3. Login with some users, upload files
  4. Upgrade code to 8.0.0
  5. Put breakpoint on setupFS() here: https://github.com/owncloud/core/blob/master/apps/files_encryption/lib/migration.php#L87
  6. Run the upgrade and step into setupFS()

Expected result

Filesystem is setup properly for every user

Actual result

Filesystem is only setup for the first user, because in https://github.com/owncloud/core/blob/master/lib/private/util.php#L67 we have $fsSetup which is always true.

The migration code is missing a tearDown() call to make sure we reset that.

Also that code uses a root view and from my understanding from here #14770 (comment) is that regardless of the user home format, it is always mounted onto "$datadir/$user". However in this specific case, since setupFS is not doing anything, it will never properly mount the user's home. This might work for regular users but could fail with LDAP as it did with @Elethiomel.

@schiesbn @icewind1991

Activity

  1. PVince81 commented on Mar 10, 2015

    @PVince81
    ContributorAuthor

    @blizzz can you tell me the steps to make the LDAP uuid different to the userid ? Goal is to have "home::uuid" that is mounted onto "$datadir/$userid". That could help reproduce @Elethiomel's encryption migration issues with LDAP in regard to this bug ticket.

  2. blizzz commented on Mar 10, 2015

    @blizzz
    Contributor
  3. DeepDiver1975 commented on Mar 10, 2015

    @DeepDiver1975
    Contributor

    The migration code is missing a tearDown() call to make sure we reset that.

            \OC_Util::tearDownFS();
  4. added a commit that references this issue on Mar 25, 2015
    1f6d8f2
  5. added this to the milestone on Mar 25, 2015
  6. locked as resolved and limited conversation to collaborators on Aug 12, 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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions