Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
PVince81 opened this issue Nov 20, 2014 · 7 comments
Closed
Milestone

Comments

@PVince81
Copy link
Contributor

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

@PVince81
Copy link
Contributor Author

PVince81 commented Dec 4, 2014

  • 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

@PVince81
Copy link
Contributor Author

PVince81 commented Dec 5, 2014

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)

@PVince81
Copy link
Contributor Author

PVince81 commented Dec 5, 2014

@schiesbn see previous comment

@PVince81
Copy link
Contributor Author

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

@PVince81 PVince81 added this to the 8.1-next milestone Jan 14, 2015
@PVince81
Copy link
Contributor Author

or 8.2 😉

@PVince81
Copy link
Contributor Author

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

@PVince81
Copy link
Contributor Author

PVince81 commented Apr 9, 2015

Fixed by #14676

@PVince81 PVince81 closed this as completed Apr 9, 2015
@lock lock bot locked as resolved and limited conversation to collaborators Aug 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant