Edgewall Software
Modify

Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#5383 closed defect (fixed)

Akismet throws when marking something via monitoring

Reported by: Nils Maier <MaierMan@…> Owned by: Christian Boos
Priority: high Milestone: not applicable
Component: plugin/spamfilter Version: devel
Severity: critical Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

As author is None for anonymous users author.encode('utf-8') fails.

Patch + Traceback attached.

Attachments (2)

trac-spamfilter-akismet-author.diff (551 bytes ) - added by Nils Maier <MaierMan@…> 17 years ago.
trac-spamfilter-akismet-author-tb.log (1.5 KB ) - added by Nils Maier <MaierMan@…> 17 years ago.

Download all attachments as: .zip

Change History (5)

by Nils Maier <MaierMan@…>, 17 years ago

by Nils Maier <MaierMan@…>, 17 years ago

comment:1 by Christian Boos, 17 years ago

Milestone: not applicable
Owner: changed from Matthew Good to Christian Boos
Status: newassigned

The Akismet filter was the only filter making use of the author parameter, but the problem was more general, so I've fixed it in a different way than in the proposed patch.

comment:2 by Christian Boos, 17 years ago

Resolution: fixed
Status: assignedclosed

Fixed in r5517.

The API doc for FilterSystem.test(req, author, changes) specifies that:

author: the name of the logged in user, or 'anonymous' if the user is not logged in

Therefore the filters should be able to expect this as well. We simply ensure in FilterSystem.test that this will always be the case, and have an additional check in FilterSystem.train when fetching log entries saved before the fix.

comment:3 by Christian Boos, 17 years ago

Just got hit by this on t.e.o, can someone upgrade the spamfilter to the latest? Thanks.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.