ozoneplatform / owf-framework

OZONE Widget Framework
http://ozoneplatform.org
Apache License 2.0
329 stars 143 forks source link

Deleting user in OWF deletes all associated ROLEs in database #76

Closed rfetters closed 8 years ago

rfetters commented 8 years ago

If a user is deleted via the OWF Administration user management interface, the roles associated with that user are also deleted from the ROLE table. When other user's who have been assigned the role(s) access OWF they receive "An error has occurred on the server" message.

Workaround is to reinsert the ROLE.

rpokorny commented 8 years ago

I wasn't able to reproduce the issue exactly as you saw it. For me, I wasn't able to delete users at all due to foreign key constraints being violated. I have just fixed that so hopefully the issue that you saw will be fixed as well.

mparizernc commented 8 years ago

Like Ross I was not able to reproduce the issue found by @rfetters but was able to reproduce the issue the same way as @rpokorny. I have verified that deleting users no longer removes the roles.I have verified this for both users and admins.