Title | Reference To Deleted Page Not Cleared |
Date | 10-Aug-2005 00:09:55 EEST |
Version | 2.2.28 |
Submitter | 84.141.157.111 |
Bug criticality | LightBug |
Browser version | Firefox 1.0.4 |
Bug status | ClosedBug |
PageProvider used | RCSFileProvider |
Servlet Container | Tomcat 5.0.27 |
Operating System | SuSE 9.2 |
URL | |
Java version | 1.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!
Hi there, found the same problem in 2.3.10 ... see my attached patch
--Joerg Luedeker
Patch included in 2.2.32.
Finding this problem in 2.4.102.
Work around I used is:
- Create page with link to bad Incoming Link page.
- Save page.
- Delete link to bad incoming link page.
- Save page.
- 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
List of attachments
Kind | Attachment Name | Size | Version | Date Modified | Author | Change note |
---|---|---|---|---|---|---|
patch |
fix_referencemanager-2.2.28.pa... | 2.0 kB | 1 | 10-Aug-2005 00:12 | 84.141.157.111 | |
patch |
fix_referencemanager-2.3.10.pa... | 3.5 kB | 1 | 10-Aug-2005 23:30 | 84.141.157.230 |