Janne Jalkanen wrote:
My guess is that it's a caching issue, some kind of lack of
synchronization
between perhaps a WikiContext, ReferenceManager or some place that keeps
page information and the updating of the comments following an edit.
If you
followed a comment through the entire process of user entry to being
stored
in the provider it would seem somewhere along that chain something is
remaining from a previous edit. I wonder if this (a) still happens when
caching is turned off, and (b) if it's influenced by choice of provider.
Note that if you watch the page history, that gives you the right
results. So I don't still quite understand how one place can give you
the right results; one gives you the wrong one.
I'm wondering if it's in the WikiEngine or in RecentChangesPlugin. Here's
a few snippets from the latter:
Collection changes = engine.getRecentChanges();
[...]
for( Iterator i = changes.iterator(); i.hasNext(); )
{
WikiPage pageref = (WikiPage)i.next();
[...]
// Change note
if( showChangenote )
{
String changenote =
(String)pageref.getAttribute(WikiPage.CHANGENOTE);
row.addElement( new td(changenote != null ? TextUtil.replaceEntities(changenote) :
"").setClass("changenote") );
}
It seems that 'pageref' is either getting the CHANGENOTE attribute off of
the wrong pageref, the pageref is referring to the wrong page, or the
content of the 'changes' Collection is wrong as received from the WikiEngine.
Since the latter doesn't make a lot of sense (since the plugin seems to work
for all the other page information that gets displayed), that would suggest
that 'pageref' doesn't contain the correct value for CHANGENOTE or the method
by which attributes are pulled from WikiPage objects has a problem, or the
creation of WikiPage objects themselves (i.e., how their content is obtained
from the provider).
Hope that's helpful,
Murray
...........................................................................
Murray Altheim <murray07 at altheim.com> === = =
http://www.altheim.com/murray/ = = ===
SGML Grease Monkey, Banjo Player, Wantanabe Zen Monk = = = =
Boundless wind and moon - the eye within eyes,
Inexhaustible heaven and earth - the light beyond light,
The willow dark, the flower bright - ten thousand houses,
Knock at any door - there's one who will respond.
-- The Blue Cliff Record