Opened 17 years ago
Last modified 5 years ago
#2571 new defect
Removing a user does not remove the session_attributes
Reported by: | Jason Trahan | Owned by: | |
---|---|---|---|
Priority: | high | Component: | UserManagerPlugin |
Severity: | major | Keywords: | user attribute deletion |
Cc: | Trac Release: | 0.11 |
Description
I'm not sure if this was by design or not. If it is can you add an option to remove the session_attributes when a user is removed.
Attachments (0)
Change History (6)
comment:1 follow-up: 2 Changed 17 years ago by
Priority: | normal → high |
---|---|
Severity: | normal → major |
Status: | new → assigned |
comment:2 Changed 13 years ago by
Keywords: | user attribute deletion added |
---|
Replying to cbalan:
Yes, this was by design ... which is bad and 'trashy', but safe. I'll fix this soon.
Safe. Quite right, indeed. In AccountManagerPlugin there was a bug preventing the db cleanup. Just the user was deleted from the password stores. I fixed it meanwhile, but yesterday I helped someone out on #trac IRC channel, who had to recover from extensive erroneous user account deletion. With his still buggy version his admin had not done much harm. You see?
Anyway, this is code available in AccountManagerPlugin. Let's see how to use it here without re-inventing the wheel.
comment:3 Changed 12 years ago by
Cc: | Ryan J Ollos added; anonymous removed |
---|
Closer investigation inside this plugin's source reveals, that UserManager.delete_user
for one relies on AccountManager.delete_user
that got fixed to delete all attributes since r10526. So all users with a password store entry (recognized by AccountManager
as referred to by the term "AccountManager"-managed users) should be sanely wiped.
The other, plugin-native method is still weak, rather disabling user accounts than deleting them, but better leave it that way, hopefully encouraging adoption of the next-generation of AccountManager with UserManager core functions merged, what is planned for the acct_mgr-0.5
release cycle.
Since Catalin will most probably not stay to the promise anymore, I'd read it like wontfix
, but leave it open for visibility to prevent duplicates until there is a better alternative thought new, integrated code.
comment:4 Changed 11 years ago by
Owner: | changed from Catalin BALAN to Ryan J Ollos |
---|
comment:5 Changed 5 years ago by
Cc: | Ryan J Ollos removed |
---|
comment:6 Changed 5 years ago by
Owner: | Ryan J Ollos deleted |
---|---|
Status: | assigned → new |
Yes, this was by design ... which is bad and 'trashy', but safe. I'll fix this soon.
Thank you for your feedback.
Best regards, Catalin Balan