|
[
Permalink
| « Hide
]
Eloy Lafuente (stronk7) added a comment - 24/Nov/09 02:37 AM
adding some watchers to let them know.
Resolving as fixed.
Remember we always must check it's not empty if we want' to rely on it for loading/restoring users. Ciao Hi Eloy,
this fix breaks things Here is what happens:
And for that, we need to retain username and idnumber... and often email.
IMHO, the right thing is:
Hm... I had mainly read the patch, not the bug. I see what you are trying to do with the hash.
I still think the right way is to preserve the real data, and get the "revive user acct" thing going, probably hooked w the password reset. I disagree, there is no such thing as undeleting/reviving of users because we have to delete a lot of user settings, preferences and data when deleting users, sorry
it is not possible to cope with cases where users are appearing and disappearing in external systems, instead of deleting those "unreliable" auth plugins should disable the account somehow (I already proposed a new db field for that in 2.0, others did not like it, well I might try to push it through again during the hackfest) technically Eloy's latest change does not remove more data imho, instead it helps to identify deleted users - I do not see any problem in that I agree this needs to be addressed properly in 2.0, this is also related to enrolments. Well, yes, the bug is about to keep more than previously, as far as before the change the original name was completely lost and now, at least, we have its md5().
And that md5() will allow others (restore, import users, auth plugins...) to detect better deleted users (by md5(username)). It was simple impossible to do that with confidence before. About reviving, rekilling, exterminating and friends, I really haven't a clear idea at all (but the basic notion that the record (the id) must survive forever in the DB. Surely, with some clever rework of auth plugins and friends, we'll be able to do those things in an standard way. In fact, having the username hash used for that... anyway that is another story. So, if changing email DB contents (of deleted users) from empty() to md5(username) doesn't affect anything, I'd keep that way forever/until some better alternative arrive. I'm going to get immediate benefits matching deleted users on restore (avoiding current "revive everybody" wrong approach). Thanks ML! Ciao so I'm re-resolving this as fixed, please if have more concerns about that change breaking anything, re-open and comment asap. We are going to release 1.9.7 / 1.8.11 in hours.
Ciao |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||