There seems to be two OG-related problems on my 4.6.0 site:
- Group subscription requests are going to all group members instead of just the group manager. Here's a copy of notification message (real names/email addresses obfuscated):
From: webmaster@mymobilexchange.com
[mailto:webmaster@mymobilexchange.com]
Sent: Wednesday, April 27, 2005 8:37 AM
To: Smith, John; firstname.lastname@mymobilexchange.net; Goliath, David; Barrymore, Drew; David, Larry; Markie, Mark; rad@mobiliq.com; Boy, Rich; Martin, Steve; Nugent, Ted; Thom, Tom; John, Wayne
Subject: Subscription request for 'Powderstorm' from 'wannabee'You may approve or deny this request at http://www.MyMobileXchange.com/og/approve/1/9
- The following error is then generated whenever a group member clicks the Approve/Deny link :
Fatal error: Duplicate entry '887e2535987f9eea7c4ab8b0071c3d7b' for key 1 query: INSERT INTO sessions (sid, uid, hostname, timestamp) VALUES ('887e2535987f9eea7c4ab8b0071c3d7b', 0, '67.92.64.91', 1114778895) in /...myhostpath.../includes/database.mysql.inc on line 66
This error may be related to the Notify module as well so I am also filing a bug report with the Notify project. Also, I am marking this as critical because the problem is undermining user confidence into the security and stability of the system.
Comments
Comment #1
samo commentedIs the approval message going to all group members intended behavior? If not, I would be glad to submit a patch.
around line 418 is the relevant code:
Comment #2
moshe weitzman commentedit is a bug. the fix is not in the code segment you've shown. the SQL is incorrect. we need to select out only admins
Comment #3
samo commentedComment #4
moshe weitzman commenteda simpler fix is about to be committed - require that grant_update >= 1
Comment #5
moshe weitzman commentedyour patch is better than my proposal. thanks much.
in the future, consider using unified diff (-u) and uploading a file instead of pasting in. these are conventions in drupal community.
Comment #6
samo commentedThanks for the diff tip. I also took a look at a pretty good Drupal page on diffs and patches. I will submit separate files in the future.
I don't think this issue is quite fixed yet though. Emails now get sent only to admins and not to the manager/owner of the group.
This problem also relates to the implode bug.
Comment #7
(not verified) commented