Closed (fixed)
Project:
Privatemsg
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Oct 2009 at 13:07 UTC
Updated:
15 Nov 2009 at 23:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
berdirWhile the actual error does not happen inside privatemsg.module, it does also trigger a few notices that *are* inside our code :)
Fixed by checking the return value of user_load() and loading the anon user when FALSE is returned.
See also #559180: Delete messages and settings when a user is deleted. which does delete messages, tags and settings when a user gets deleted.
Comment #2
berdirQuestion: What should happen in that case?
1. Display the message as sent be Anonymous
2. Don't load/display the message when the author has been deleted/can't be found.
While the patch currently implements 1, I think 2 is probably better and also makes more sense together with #559180: Delete messages and settings when a user is deleted.
Opinions?
Comment #3
berdirSecond approach attached as a patch.
Maybe make this configurable?
Comment #4
berdirI think solution 2 is the way to go for now, since we currently disallow anonymous users to send messages. We can revisit this once if we implement anonymous user access.
I will commit this soon unless someone finds a bug.
Comment #5
berdirI discussed this with nbz and changed my opinion. While maybe not right now, solution 1 makes more sense together with the mentioned patch, since something weird probably happened because the other patch is supposed to delete messages when users are deleted (not yet, since it hasn't been commited, of course).
Commited the patch in #1.