#6763 closed defect (wontfix)
[patch] WikiRenamePlugin doesn't invalidate wiki page name cache after moving page
Reported by: | Steffen Hoffmann | Owned by: | Noah Kantrowitz |
---|---|---|---|
Priority: | normal | Component: | WikiRenamePlugin |
Severity: | minor | Keywords: | CacheManager WikiSystem invalidate |
Cc: | Trac Release: | 0.11 |
Description
observed behavior:
- access page with valid call for WikiTicketCalendarMacro, see: some day has not yet a corresponding wiki page (i.e. "2" of Mar 2010 isn't highlighted as if page no exists)
- create wiki page through link provided by WikiTicketCalendarMacro calender (i.e. http:/<trac_url>/wiki/Cal/2010-03-02)
- access new page directly via http://<trac_url>/wiki/<new page> (i.e. typing http:/<trac_url>/wiki/Cal/2010-03-02 into browser) - success
- access page with valid call for WikiTicketCalendarMacro, see: day in question highlighted now
- access wiki page through link provided by WikiTicketCalendarMacro calender - success
- rename new page with WikiRenamePlugin respecting actual syntax of WikiTicketCalendarMacro call in question (i.e. wiki/Cal/2010-03-02 -> wiki/Cal/2010-03-03)
- access renamed page directly via http://<trac_url>/wiki/<renamed page> (i.e. typing http:/<trac_url>/wiki/Cal/2010-03-03 into browser) - success
- access pages old location directly via http://<trac_url>/wiki/<new page> (i.e. typing http:/<trac_url>/wiki/Cal/2010-03-02 into browser) - page missing as expected
- access page with unchanged call for WikiTicketCalendarMacro, i.e. see:
- link to former wiki page (i.e. "2" of Mar 2010) still highlighted as if page exists
- link to renamed wiki page (i.e. "3" of Mar 2010) is not highlighted as if page not exists
- access relevant wiki pages through link provided by WikiTicketCalendarMacro calender, see:
- link to former wiki page (i.e. "2") - page missing, getting offer to create it
- link to renamed wiki page (i.e. "3") which has "?action=edit" appended - page exists, so getting offer to save v2 (!)
conclusion:
WikiTicketCalendarMacro does rely on cached wiki page, but WikiRenamePlugin doesn't give appropriate notice of effective page name changes (to CacheManager (used by WikiSystem), approved/details found by code studies)
Attachments (2)
Change History (9)
comment:1 Changed 15 years ago by
Summary: | WikiRenamePlugin doesn't invalidate wiki page name cache after moving page → [patch] WikiRenamePlugin doesn't invalidate wiki page name cache after moving page |
---|
Changed 15 years ago by
Attachment: | 20100303_wikirename-trigger-cachemgr.diff added |
---|
unified diff showing how to add required cache invalidation
Changed 15 years ago by
Attachment: | 20100303_wikirename-trigger-cachemgr.2.diff added |
---|
updated unified diff (lines 1+2 were mangled, still no display, please load original format)
comment:2 Changed 15 years ago by
second link shows diff in Trac style after importing (almost) the same patch twice - weird
comment:3 Changed 12 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
The plugin is deprecated since there is now support in the Trac core.
comment:5 Changed 12 years ago by
Sure, since Trac wiki rename feature still needs to be supported in some plugins that this plugin handles for me until now, I would like to apply patches, that I use day-by-day with success.
comment:6 Changed 12 years ago by
(This is an very old ticket of mine before registration here.)
The invalidation can be done even better than I've suggested here to work even for Trac-1.0, so I'll apply an updated version then.
comment:7 Changed 12 years ago by
Thank you. I've been trying to close out ticket for projects that are deprecated. I may have gotten a bit overzealous in closing ticket for this one since it is still relevant in Trac 0.11.
solution found by studying CacheManager, syntax of cache invalidation found in
proposed patch for WikiRenamePlugin:
successfully tested here