Skip to content

Repair step to remove orphaned share entries with no matching oc_filecache entry #12323

Closed

Description

@PVince81

In some situations, possibly due to bugs, it can happen that oc_share entries are referencing file ids that have no matching entry in oc_filecache.

Such entries need to be cleared within a repair step.
Code from #7293 could be reused to do that for every update.

Slightly related to #7874

Activity

  1. PVince81 commented on Dec 4, 2014

    @PVince81
    ContributorAuthor
    • remove orphaned share entries with no matching entry in filecache
    • remove share entries where the "parent" column does not match any other share

    CC @schiesbn

  2. PVince81 commented on Dec 5, 2014

    @PVince81
    ContributorAuthor

    It looks like it is possible to create orphaned shares from the web UI using the steps from #6985

    This means that a repair script isn't enough, but would need to be a cron job (but only if there is no proper fix for #6985)

  3. PVince81 commented on Dec 5, 2014

    @PVince81
    ContributorAuthor

    @schiesbn see previous comment

  4. PVince81 commented on Jan 14, 2015

    @PVince81
    ContributorAuthor

    @DeepDiver1975 setting to 8.1, it's about time we implemented this.
    Please set to backlog if not acceptable.

  5. added this to the milestone on Jan 14, 2015
  6. PVince81 commented on Jan 14, 2015

    @PVince81
    ContributorAuthor

    or 8.2 😉

  7. PVince81 commented on Jan 14, 2015

    @PVince81
    ContributorAuthor

    Note: make sure to check that item_type is either file or folder. We don't want to delete orphaned calendar/contacts by mistake.

  8. PVince81 commented on Apr 9, 2015

    @PVince81
    ContributorAuthor

    Fixed by #14676

  9. 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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions