Login as admin user. Create a new user. Logout and login as the new user, fine. Logout and login as admin user and delete the new user. Get the error:
Can not delete user
Sorry; we could not find the specified profile.
The user is removed from the list of users in the UI but is still in the DB, users_entity table.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Kevin Jardine@kevin
Kevin Jardine - 0 likes
- Marcus Povey@marcus
Marcus Povey - 0 likes
- Kevin Jardine@kevin
Kevin Jardine - 0 likes
- Marcus Povey@marcus
Marcus Povey - 0 likes
- Codebrane@codebrane
Codebrane - 0 likes
- Marcus Povey@marcus
Marcus Povey - 0 likes
You must log in to post replies.Yes, I can confirm this.
I believe that this code did work until recently. Must have been a change in the last few days.
Can you put this in Trac as well?
This is a confirmed regression and I have a fair idea what's causing it... will investigate and fix.
Specifically, the user entity is removed from the entities table, but not from the users_entity table.
Yes, this is because of a permission check in the sub table delete function which fails because the base entity has been removed.
Easy enough to fix.
good stuff! many thanks
I have just committed a fix in SVN.
Subtable delete methods have now been deprecated and their functionality consolidated into delete_entity().
This shouldn't cause any problems now, however there is a theoretical issue if a plugin author creates a subtype of a main entity with its own class AND actively removes the subtable handling code... but I suspect this is highly unlikely to happen and will probably cause issues on creation in any case.