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
AccountDeletion raises exception on performing #7631
Comments
Aren't there contacts in the DB with |
The error message looked familiar and I thought it is maybe something similar to what I fixed with #7538 for the user (it was only a cached contact membership but the aspect_membership was already removed). But this time it's for the person, not the user. It's also weird that it even happens when you run it twice (so it isn't a cache problem, because the second time the object creating the cache problem should be already deleted from the first run). so it's maybe a user that's deleted for some reason ( I currently don't have much time to analyze this, but I wanted to give hints that I already saw that error once with another topic related to account deletion. |
Can't that be that we added |
I think databases fail when you add a constraint that is invalid. |
You're probably right. I looked at the sequence of SQL queries produced by the account deletion and it looks like it can happen when the user entry is missing from the database (the local user which had in contacts the person who are trying to delete themselves). Since we don't have Since we don't normally delete entries from In order to solve the issue I think it's okay just to ignore the I can PR this. |
I checked, and all the invalid contact relations are made pre-2012, so likely that this is just a prehistorc relict of some sort. Preventing this case from failing is probably good enough, so ++ to a PR to skip disconnecting if there is no user. |
I removed the regression label, because this was a problem that was always there, but just with old accounts. |
Fixed by #7632 |
Currently,
AccountDeletions
seem to be broken. I have several unperformed deletions, and when triggering them manually, they fail with:Can't figure out when this regressed, but we should probably have a look at this...
The text was updated successfully, but these errors were encountered: