Opened 16 years ago

Closed 16 years ago

#761 closed Defect (fixed)

Orphaned spam profile selected as UOTD

Reported by: Thyme Lawn Owned by: davea
Priority: Major Milestone: Undetermined
Component: Web - Project Version:
Keywords: UOTD profile patch Cc:

Description

When a project deletes a user with a spam profile the deletion isn't propagated to the profile record.

The resulting orphaned profile can be selected as the user of the day, as is the case on Orbit@home today. The source for that page shows the UOTD href as "http://orbit.psi.edu/oah/show_user.php?userid=", so all you get is a direct link to the online pharmacy.

BoincUser::delete() in boinc_db.inc needs to be modified to ensure that any associated profile is also deleted and select_uotd() in uotd.inc needs to avoid profiles where lookup_user_id() returns null.

Attachments (1)

delete-profile-on-user-delete.diff (354 bytes) - added by Nicolas 16 years ago.
patch

Download all attachments as: .zip

Change History (3)

Changed 16 years ago by Nicolas

patch

comment:1 Changed 16 years ago by Nicolas

Keywords: patch added

comment:2 Changed 16 years ago by davea

Resolution: fixed
Status: newclosed

(In [16255]) - web: don't select orphaned profile as UOTD;

delete profile when delete user. Fixes #761

Note: See TracTickets for help on using tickets.