xwiki-attic / application-confluence-migrator

Migrates content from Confluence to XWiki
GNU Lesser General Public License v2.1
3 stars 7 forks source link

Spaces with dots are not converted on step 6 (Nested Pages) #97

Closed mouhb closed 1 year ago

mouhb commented 1 year ago

Steps to reproduce :

Expected results : The nested page migration is correctly executed and the nested pages are moved to their correct locations

Current results : The nested pages migration is not executed and the message "There is nothing to do !" is displayed on the UI.

nested-pages-migration-issue
mouhb commented 1 year ago

After investigation I find that the issue is caused by the fact the space name is not escaped according to XWiki SPACE reference syntax before being passed to the Nested Pages Migrator. So john.doe is passed to the Nested Pages Migrator instead of john\.doe (with the dot escaped).

Note that this issue do not affect the Standard Nested Pages Migrator because the user is responsible to manually fill the correct Space value on the migrator form unlike on the customized Nested Pages Migrator used by the Confluence Migrator where the space values is automatically initialised by the value configured on the migration profile.

So, in order to fix the issue, the custom Nested Pages Migrator used on the Confluence Migrator (Confluence.Tools.NestedPagesMigration) should be fixed in order to correctly escape spaces according to the XWiki SPACE reference syntax.

mouhb commented 1 year ago

Issue fixed.