Edgewall Software
Modify

Opened 18 years ago

Closed 14 years ago

#4294 closed defect (fixed)

Global trac.ini enable of spamfilter breaks initenv

Reported by: John Goerzen <jgoerzen@…> Owned by:
Priority: normal Milestone: plugin - spam-filter
Component: plugin/spamfilter Version: 0.10.4
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

I will be maintaining a few dozen projects in trac. In my global trac.ini, I have:

tracspamfilter.* = enabled

in the components section.

After I initenv a new instance, when I go to pull up its page, I get an error that says that the instance must be upgraded. If I run the trac-admin upgrade comment, I get:

Command failed: table spamfilter_log already exists

If I leave tracspamfilter out of the global trac.ini, and add it to the per-instance ini file after initenv, then it works fine.

Attachments (0)

Change History (9)

comment:1 by John Goerzen <jgoerzen@…>, 18 years ago

The above was with sqlite.

comment:2 by sid, 18 years ago

Summary: Breaks initenvGlobal trac.ini enable of spamfilter breaks initenv

comment:3 by Christian Boos, 18 years ago

Milestone: none

Not sure if it would still be a problem with 0.11 and the [inherit] mechanism… maybe worth testing anyway.

comment:4 by anonymous, 18 years ago

I to have this problem. Is there a workaround of something to fix this issue?

comment:5 by anonymous, 17 years ago

Version: 0.10.20.10.4

The error still exists in 0.10.4

comment:6 by holl, 17 years ago

A workaround is deleting the tables spamfilter_log and spamfilter_bayes with sqlite and after that doing an upgrade with trac-admin. Now all is working as it should.

comment:7 by Christian Boos, 15 years ago

Milestone: not applicablespam-filter-plugin
Owner: Matthew Good removed

comment:8 by Dirk Stöcker, 14 years ago

Is this still a problem in 0.11/0.12?

comment:9 by Dirk Stöcker, 14 years ago

Resolution: fixed
Status: newclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) 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.