TitleReference To Deleted Page Not Cleared
Date10-Aug-2005 00:09:55 EEST
Bug criticalityLightBug
Browser versionFirefox 1.0.4
Bug statusClosedBug
PageProvider usedRCSFileProvider
Servlet ContainerTomcat 5.0.27
Operating SystemSuSE 9.2
Java version1.4.2-05

When deleting a page that references to another page and then moving to the page that had been referrenced, the deleted page still shows up in the reffering pages list. This is the same problem when using the rename patch for 2.2.28.

Details: Within the m_refersTo map the pagename is a key. The whole key-value-set has to be removed to keep the map clean. This is what already happens in ReferenceManager.pageRemoved(). However, whats beeing wrong is: Within the m_referredBy map the name is stored as a value and since a key can have more than one value we have to delete just the key-value-pair referring page:deleted page... and this is what's not beeing the case in 2.2.28. See my attached fix...

--Joerg Luedeker

Ah, excellent catch. Thanks!

-- JanneJalkanen

Hi there, found the same problem in 2.3.10 ... see my attached patch

--Joerg Luedeker

Patch included in 2.2.32.

-- JanneJalkanen

Finding this problem in 2.4.102.

Work around I used is:

  1. Create page with link to bad Incoming Link page.
  2. Save page.
  3. Delete link to bad incoming link page.
  4. Save page.
  5. Delete page.

You might be able to eliminate the middle two steps and just create the link, save, then delete.

--ceshaffer, 08-Jun-2007

Add new attachment

Only authorized users are allowed to upload new attachments.

List of attachments

Kind Attachment Name Size Version Date Modified Author Change note
fix_referencemanager-2.2.28.pa... 2.0 kB 1 10-Aug-2005 00:12
fix_referencemanager-2.3.10.pa... 3.5 kB 1 10-Aug-2005 23:30
« This page (revision-6) was last changed on 08-Jun-2007 17:40 by