-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Deleting user must delete all their tags #12816
Comments
Not sure how to proceed here. Normally I'd register a hook for Making the TagManager listen to that hook will not work because it implies having it initialized (currently it's lazy-inited in the server container). @icewind1991 @blizzz @schiesbn any idea where to register the hook ? |
Started a PR here: #12821 |
@PVince81 As a first step you could add a command to cleanup the tags ;) There you can invoke the logic and then decide after the release where and how to register the hooks properly ;) |
Raised repair step ticket here: #13334 |
The repair step is now merged |
On which conditions will it be lazy-initialized? |
The repair step is just a workaround for now. |
Not a showstopper, moving to 8.1. @nickvergessen suggested to make it a one-shot background job: as soon as a user is deleted, the bkg job for cleanup is created. This way the user deletion isn't delayed. Same could be done for other cleanup tasks. |
Oh, look what I just found: https://github.com/owncloud/core/blob/master/lib/public/itags.php#L34 It looks like tag deletion whenever a user is deleted was already implemented... |
but the location is rater sub optimal .... we need that on IRC discussed hook manager ... |
|
Would be better to extend CleanTags to delete the tags of deleted users instead. |
I can take care of this. |
Version 9.1.4 I created one user and I logged in as this newly created user and I uploaded an image and I assigned a tag. Later I logged out and logged in as Admin and I deleted this newly created user. Files and folders were deleted. The tag is but still there. In terminal I called the cron.php
This did not also delete the tag. |
You are likely talking about system tags which have no owners, the admin must delete these manually. The original ticket was about private tags which were only used by the contacts app. |
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. |
Steps
oc_vcategory
Expected result
User tags are deleted
Actual result
User tags are still there
Versions
master 4b57892
The text was updated successfully, but these errors were encountered: