Skip to content

Bogus shared:: storage entry in oc_storages #24106

Closed

Description

@PVince81

Steps

  1. Setup OC 9.0.1
  2. Enable encryption
  3. Create two users "user1" and "user2"
  4. Login as "user1"
  5. Create a folder "test"
  6. Share "test" with "user2"
  7. Login as "user2"
  8. Create a subfolder "test/sub"
  9. Upload a non-empty file into "test/sub" in the web UI
  10. Navigate to folder "test"
  11. Check the size of the folder "sub"
    (from Folder size not propagated when uploading as share recipient with encryption enabled #24105 as that's where I observed this while looking at the DB)

Expected result

No bogus storage in oc_storages

Actual result

Bogus "shared::" storage for the local share:

MariaDB [owncloud]> select * from oc_storages;
+---------------------------------------+------------+-----------+--------------+
| id                                    | numeric_id | available | last_checked |
+---------------------------------------+------------+-----------+--------------+
| home::admin                           |          1 |         1 |         NULL |
| local::/srv/www/htdocs/owncloud/data/ |          2 |         1 |         NULL |
| home::user1                           |          3 |         1 |         NULL |
| home::user2                           |          4 |         1 |         NULL |
| shared::/test                         |          5 |         1 |         NULL |
+---------------------------------------+------------+-----------+--------------+

Versions

ownCloud 9.0.1

@icewind1991 @rullzer is this something new in 9.0.1 or is this a bug ?

Activity

  1. added this to the milestone on Apr 19, 2016
  2. PVince81 commented on Apr 19, 2016

    @PVince81
    ContributorAuthor

    There are no oc_filecache entries for that storage though, and no oc_mounts entry points to that.

  3. rullzer commented on Apr 19, 2016

    @rullzer
    Contributor

    No idea why this is happening... @schiesbn maybe?

  4. modified the milestones: , on Jun 2, 2016
  5. PVince81 commented on Jun 16, 2016

    @PVince81
    ContributorAuthor

    @icewind1991 can we prevent this somehow ?

  6. PVince81 commented on Jul 18, 2016

    @PVince81
    ContributorAuthor

    Hmmm, I can't reproduce this in 9.1.0RC2 with or without encryption. Maybe it's fixed.

  7. PVince81 commented on Jul 18, 2016

    @PVince81
    ContributorAuthor

    But still happens in 9.0.4RC1.

  8. PVince81 commented on Jul 18, 2016

    @PVince81
    ContributorAuthor

    TODO:

    • find out which commit fixes this and backport it
    • provide repair step that deletes the bogus entries:
      • find all storage entries that have no filecache entries
      • find the storage type to check if it's a "shared::" storage, requires resolving through "oc_mounts" and setup FS for each found user to get to the correct storage type (in case of md5 storages)
  9. modified the milestones: 9.0.5, 9.0.4 on Jul 18, 2016
  10. 7 remaining items

  11. PVince81 commented on Aug 15, 2016

    @PVince81
    ContributorAuthor

    Repair step for oc_mounts: #25804

    Now I realize that we'd also better delete the bogus "shared::" entries which is easy as long as we're not dealing with md5 ids...

  12. modified the milestones: 9.0.6, 9.0.5 on Sep 21, 2016
  13. modified the milestones: 9.0.7, 9.0.6 on Oct 20, 2016
  14. self-assigned this
    on Nov 21, 2016
  15. modified the milestones: 9.0.8, 9.0.7 on Nov 30, 2016
  16. modified the milestones: 9.0.9, 9.0.8 on Feb 3, 2017
  17. PVince81 commented on Feb 3, 2017

    @PVince81
    ContributorAuthor

    I need to retry this. Some backports done to OC 9 related to shared storages might fix this.

  18. PVince81 commented on Feb 10, 2017

    @PVince81
    ContributorAuthor

    Just retried with 9.0.8 and the bogus storages cannot be recreated.

    I'm closing this ticket but let's keep the PR for cleaning up the old mess...

  19. lock commented on Aug 3, 2019

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions