View Issue Details

IDProjectCategoryView StatusLast Update
0003940mantisbtbugtrackerpublic2004-08-29 02:27
ReporterUndergrid Assigned Tograngeway  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionduplicate 
Product Versiongit trunk 
Summary0003940: Deleteing a user causes error 0000801 in bug with user in history.
Description

If you delete a user that has caused entries in the history for one or more bugs, viewing those bugs cause a system error 0000801 and you are unable to access the bug at all.

Steps To Reproduce

Create a user with suitable permissions.
Cause that user to create an entry into a bugs history (modify something).
Delete user.
Attempt to view modified bug.
System error 0000801 (User not found) is displayed and you cant see any bug information no mater what access level you have.

Additional Information

The deleted accounts id is stored in the user_id field in mantis_bug_history_table. When the bug_view_page.php page (and possibly other) tried to render the history list it tries to lookup the ID to get the realname. If the account doesn't exist the above mentioned error is displayed. Removing all entries in the mantis_bug_history_table for the specified user_id allowed access to the bug.

I also found the user ID of the deleted user in the user_id field of the mantis_bug_monitor_table, I havn't confirmed yet if this is an issue, however since the user has been deleted he wouldn't be able to receive bug updates anyway.

TagsNo tags attached.

Relationships

duplicate of 0003628 closedgrangeway Bug "frozen" after user deleted 
child of 0003987 closedvboctor Mantis 0.19.0 Release 

Activities

There are no notes attached to this issue.