-
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
Duplicated entries in the oc_vcategory table cause favourite tags to not be permanently deleted #20952
Comments
I suspect a concurrency issue: two parallel calls noticing that the tag did not exist so it created it... We should probably lock the file before working on tags, and maybe also add a unique key. |
The ticket #12858 is actually only for the relations, not the tags themselves. |
You should be able to manually delete one of the tags in the database including its relationship as a quickfix. Is that only a single occurrence of the duplication ? |
@PVince81 they've only noticed one single occurence of the duplication since now but Customer does not exclude that some other end users are also affected by this as they did have not the chance to check |
Guys next steps on this? |
Is that only a single occurrence of the duplication or is it easily reproducible ? @MorrisJobke ^ for severity |
@PVince81 When are those tags added? Isn't it checked to only add it once? And why is there no unique constraint in that table? |
fix it ;) |
@MorrisJobke I think it should, but if two processes do the check first, then insert at the same time, the check for both will see that the tag wasn't set. Locking might help. |
No, just favorite two different files at the same time. What might help is unique key and/or insert if not exists |
@bboule @MorrisJobke moving to 9.1 unless there's an objection |
cc @pako81 00004316 |
yes, ok for 9.1 |
@pako81 has this happened again recently ? |
No, no similar issues have been reported to us recently AFAIK /cc @cdamken |
moving to backlog for another time |
Hey, this issue has been closed because the label (This is an automated comment from GitMate.io.) |
This issue has been automatically closed. |
Steps to reproduce
After manually removing the duplicated entries in the oc_vcategory table and the corresponding ones in oc_vcategory_to_object, favourite tags are permanently deleted.
Expected behaviour
Favourite tags should be permanently deleted and no duplicated entries for the same user in the oc_vcategory table should exist.
Actual behaviour
See above
Server configuration
ownCloud version: 8.1.4
cc @pako81
The text was updated successfully, but these errors were encountered: