Ticket #4294 (closed defect: fixed)
Opened 5 years ago
Last modified 20 months ago
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: | |||
| Release Notes: | |||
| API 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
Change History
comment:1 Changed 5 years ago by John Goerzen <jgoerzen@…>
comment:2 Changed 5 years ago by sid
- Summary changed from Breaks initenv to Global trac.ini enable of spamfilter breaks initenv
comment:3 Changed 5 years ago by cboos
- Milestone set to none
Not sure if it would still be a problem with 0.11 and the [inherit] mechanism... maybe worth testing anyway.
comment:4 Changed 5 years ago by anonymous
I to have this problem. Is there a workaround of something to fix this issue?
comment:5 Changed 4 years ago by anonymous
- Version changed from 0.10.2 to 0.10.4
The error still exists in 0.10.4
comment:6 Changed 4 years ago by holl
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 Changed 2 years ago by cboos
- Milestone changed from not applicable to spam-filter-plugin
- Owner mgood deleted
comment:8 Changed 20 months ago by dstoecker
Is this still a problem in 0.11/0.12?
comment:9 Changed 20 months ago by dstoecker
- Resolution set to fixed
- Status changed from new to closed



The above was with sqlite.