Modify

Opened 14 years ago

Closed 12 years ago

#6835 closed defect (fixed)

Does not track page deletes

Reported by: Mark Potter Owned by: Ryan J Ollos
Priority: low Component: AutoWikifyPlugin
Severity: minor Keywords:
Cc: Steffen Hoffmann Trac Release: 0.11

Description

Steps to reproduce:

  • The word "Customer" is auto-wikified to the "Customer" page.
  • Delete the "Customer" page.
  • The word "Customer" is still auto-wikified, but link offers to "Create this page".

Work around: Simply restart Trac.

Attachments (0)

Change History (3)

comment:1 Changed 14 years ago by Ryan J Ollos

I can confirm in that I've observed this behavior on t-h.o (but can't confirm the restart workaround).

comment:2 Changed 12 years ago by Ryan J Ollos

Cc: Steffen Hoffmann added; anonymous removed
Owner: changed from Alec Thomas to Ryan J Ollos
Status: newassigned

Well, it seems there is an error here:

WikiSystem(self.env)._compiled_rules = None

WikiSystem should replaced with WikiParser:

WikiParser(self.env)._compiled_rules = None

But, as Alec Thomas noted in acronymsplugin/0.11/tracacronyms/acronyms.py:

# XXX Very ugly, but only "reliable" way?
from trac.wiki.parser import WikiParser
WikiParser(self.env)._compiled_rules = None

Is there a better way to force WikiParser to update the rules? This might be a good question for the mailing list and a possible enhancement request for the Trac core.

comment:3 Changed 12 years ago by Ryan J Ollos

Resolution: fixed
Status: assignedclosed

(In [11818]) Fixes #6835: Auto-wikification was not updating when a page was added or deleted.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.