|Title|Cannot update reffer links after rename
|Date|17-Feb-2006 17:48:20 EET
|[Bug criticality]|BadBug
|Browser version|Firefox
|[Bug status]|ClosedBug
|[PageProvider] used|
|Servlet Container|Tomcat 5.5
|Operating System|Window XP
|Java version|java 5.0

Please check {{PageRenamer.java}}, where __%%(color:red) line 113%%__ should __''NOT''__ be called before getReferrersCollection().

Here is a snapshot:

// 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 );
     // XXX: Questionable behaviour!

So, {{reffers}} always be null.

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


Fixed in the current CVS.