View Issue Details

IDProjectCategoryView StatusLast Update
0000179WackoWikihandlerpublic2009-08-19 09:39
ReporterTann San Assigned ToTann San  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version4.2 
Target Version4.3.rcFixed in Version4.3.rc 
Summary0000179: Mass renaming a page that has a sub page with the same name renames both
DescriptionSay we have a page called PetCats. Inside PetCats we have another page called PetCats. Now if we rename the parent it also renames the child:

/PetCats
/PetCats/PetCats

mass rename /PetCats to /PetCat

/PetCat
/PetCat/PetCat

Which then breaks file links for the child page. Doesn't have to be a direct decendant i.e. this still breaks:

/PetCats
/PetCats/FeedingAnimals
/PetCats/FeedingAnimals/PetCats

mass rename /PetCats to /PetCat

/PetCat
/PetCat/FeedingAnimals
/PetCat/FeedingAnimals/PetCat
Additional InformationThe problem is in handlers/page/massrename.php in the RecursiveMove function. We currently use str_replace to replace all occurences of PetCat inside all pages.
TagsNo tags attached.

Activities

Tann San

2008-06-09 10:59

manager   ~0000357

Changed to using preg_replace instead which allows us to rename just the first occurence.

Issue History

Date Modified Username Field Change
2008-06-09 10:29 Tann San New Issue
2008-06-09 10:29 Tann San Legacy => NEW
2008-06-09 10:59 Tann San Status new => resolved
2008-06-09 10:59 Tann San Fixed in Version => 5.0.0
2008-06-09 10:59 Tann San Resolution open => fixed
2008-06-09 10:59 Tann San Assigned To => Tann San
2008-06-09 10:59 Tann San Note Added: 0000357
2009-08-19 09:22 administrator Fixed in Version 5.0.0 => 4.3.rc
2009-08-19 09:39 administrator Target Version => 4.3.rc
2010-03-08 10:14 administrator Category Handler => handler