This is version . It is not the current version, and thus it cannot be edited.
[Back to current version]   [Restore this version]
TitleCannot update reffer links after rename
Date17-Feb-2006 17:48:20 EET
Version2.3.78-cvs
Submitterbenx
Bug criticalityBadBug
Browser versionFirefox
Bug statusNewBug
PageProvider used
Servlet ContainerTomcat 5.5
Operating SystemWindow XP
URL
Java versionjava 5.0

Please check PageRenamer.java, where line 113 should NOT be called before getReferrersCollection().

Here is a snapshot:

m_wikiEngine.getReferenceManager().clearPageEntries(oldName);


// Get the collection of pages that the refered to the old name (the From name)...
Collection referrers = getReferrersCollection( oldName );

// If there were pages refering to the old name, update them to point to the new name...
if( referrers != null )
{
     updateReferrersOnRename( oldName, newName, changeReferrers, newNameCleaned, referrers );
}
else
{
     // XXX: Questionable behaviour!
     m_wikiEngine.initReferenceManager();
}

So, reffers always be null.

BTW, code m_wikiEngine.getReferenceManager().clearPageEntries(oldName); is called in the updateReferrersOnRename() method.

Add new attachment

Only authorized users are allowed to upload new attachments.
« This particular version was published on 17-Feb-2006 17:51 by benx.