TitleCannot update reffer links after rename
Date17-Feb-2006 17:48:20 EET
Version2.3.78-cvs
Submitterbenx
Bug criticalityBadBug
Browser versionFirefox
Bug statusClosedBug
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.


Fixed in the current CVS.

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-4) was last changed on 24-Sep-2006 15:40 by JanneJalkanen