Skip to content

Cross-storage move doesn't properly update oc_mounts #25805

Closed

Description

@PVince81

Steps

  1. Create two users "user1" and "user2"
  2. Login as "user1"
  3. Create a folder "test"
  4. Share "test" with "user2"
  5. Login as "user2"
  6. Check oc_mounts and note the values of "storage_id" and "root_id" for the "test" folder for "user2"
  7. Login as admin
  8. Setup a SFTP external storage "/sftp", applicable for "user1" only
  9. Login as "user1"
  10. Move "test" to "/sftp", it becomes "/sftp/test"
  11. Login as "user2"
  12. Check oc_mounts

Expected result

The value of "storage_id" must change to match the new storage in which the "root_id" is on.

Actual result

"storage_id" still points at the home storage of "user1".
I didn't find any negative side-effects in regular OC use. However if some apps are using APIs to reverse-resolve storages based on oc_mounts, they will get wrong results.

Versions

v9.1.0

Activity

  1. added this to the 9.1.1 milestone on Aug 15, 2016
  2. modified the milestones: 9.1.2, 9.1.1 on Sep 21, 2016
  3. modified the milestones: 9.1.3, 9.1.2 on Oct 20, 2016
  4. self-assigned this
    on Nov 21, 2016
  5. modified the milestones: 9.1.4, 9.1.3 on Nov 30, 2016
  6. modified the milestones: 9.1.5, 9.1.4 on Feb 6, 2017
  7. modified the milestones: 9.1.6, 9.1.5 on Apr 13, 2017
  8. 16 remaining items

  9. ownclouders commented on Mar 9, 2018

    @ownclouders
    Contributor

    Hey, this issue has been closed because the label status/STALE is set and there were no updates for 7 days. Feel free to reopen this issue if you deem it appropriate.

    (This is an automated comment from GitMate.io.)

  10. removed their assignment
    on Sep 5, 2019
  11. stale commented on Sep 21, 2021

    @stale

    This issue has been automatically closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions