Modify

Opened 4 years ago

Closed 2 years ago

#6835 closed defect (fixed)

Does not track page deletes

Reported by: potter Owned by: rjollos
Priority: low Component: AutoWikifyPlugin
Severity: minor Keywords:
Cc: hasienda 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 4 years ago by rjollos

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

comment:2 Changed 2 years ago by rjollos

  • Cc hasienda added
  • Owner changed from athomas to rjollos
  • Status changed from new to assigned

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 2 years ago by rjollos

  • Resolution set to fixed
  • Status changed from assigned to closed

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

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from rjollos. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.