comment_post patch

joshk - December 8, 2004 - 22:31
Project:Drupal
Component:comment.module
Category:task
Priority:normal
Assigned:Unassigned
Status:closed
Description

Attached is a patch which fixes the problems with comment.module and mailhandler. It replicates comment_post() in mailhandler (as mailhandler_comment_post), nixing the drupal_gotos at the end of comment_post so that it can be auto run by cron without stopping.

Also fixed a minor SQL bug (missing comma on line 535).

AttachmentSizeStatusTest resultOperations
mailhandler_0.patch9.31 KBIgnoredNoneNone

#1

joshk - December 8, 2004 - 22:37

Here's a patchfile that's not backwards.

AttachmentSizeStatusTest resultOperations
mailhandler_corrected.patch9.31 KBIgnoredNoneNone

#2

moshe weitzman - December 8, 2004 - 22:46

please submit a patch to comment_post instead. We don't want to maintain all that comment code in mailhandler

#3

killes@www.drop.org - December 8, 2004 - 22:48

The problem is that mailhandler and listhandler are broken for 4.5 without this patch. Even if we would convince Dries to accept a patch to comment.module for the 4.5 branch our module swould be unusable until the release of 4.5.2.

#4

moshe weitzman - December 8, 2004 - 22:51

ok. then someone is welcome to check this code into 4.5 branch. please don't check it into HEAD. Instead, refactor comment_post()

#5

Steve Dondley - January 28, 2005 - 11:05

You don't know how many hours of my life I lost trying to get mailhandler/listhandler to work. I ended up tracking it down to this bug (which I didn't know about until now). I came here to post my own patch for it.

Can some PLEASE put a note in the INSTALL.txt file to use this patch? It will save other people the nightmare I went through. I spent countless hours trying to figure out what was wrong with my mail list settings/mailhandler settings before I figured out it was a bug.

Again, please, for other people, make a note in the INSTALL file about this patch.

#6

Steve Dondley - January 28, 2005 - 11:47

NOTE: Hunk 3 failed on latest version of mailhandler.module.

#7

handelaar - February 6, 2005 - 02:59

Yeah, he's not wrong.

The patch fails.

#8

drumm - February 9, 2005 - 01:38
Assigned to:joshk» drumm

I will be testing and committing this as instructed in update #4.

#9

drumm - February 9, 2005 - 19:35
Project:Mailhandler» Drupal
Component:Code» comment.module
Category:bug report» task
Assigned to:drumm» Anonymous

Committed to 4.5.

Now who is going to fix it in CVS before 4.6?

Sumary: comment_post uses drupal_goto() which horrilbly confuses any module which tries to post comments programmatically.

#10

moshe weitzman - July 26, 2005 - 18:22
Status:active» fixed

#11

Anonymous - August 9, 2005 - 21:47

#12

Anonymous - August 23, 2005 - 22:00

#13

Anonymous - September 6, 2005 - 22:20

#14

Anonymous - September 20, 2005 - 22:40

#15

Anonymous - October 4, 2005 - 23:00
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.