Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page modification dates are not correctly migrated into XWiki #50

Closed
mouhb opened this issue Jan 15, 2024 · 3 comments
Closed

Page modification dates are not correctly migrated into XWiki #50

mouhb opened this issue Jan 15, 2024 · 3 comments

Comments

@mouhb
Copy link

mouhb commented Jan 15, 2024

The issue is that the modification dates of XWiki pages created by the migrator do not corresponds to the modification dates of the confluence pages, the modifications dates of XWiki pages are instead set to the date of the migration. This is problematic because the modification date is very important in some cases, for example to order/display the pages chronologically using some macros.

Steps to reproduce :

  • On XWiki instance version 14.10.17 install Confluence Migrator Application Pro version 1.7.9
  • Export a space from Confluence that contains pages with modification dates prior to today's date, see screenshot
    confluence-page
  • On XWiki Confluence Migrator Pro run a new migration using the exported confluence space with default configurations and observe the result

Expected results : The space pages are correctly imported and the modification dates of the XWiki pages corresponds to the modification dates of the original confluence pages

Current results : The pages are correctly imported but the modification dates of the XWiki pages are initialized with the migration timestamp. See screenshots :

xwiki-page

xwiki-page-history

Note that the page creation date is correctly initialized.

According to the XWiki page history it seems that the issue is caused by the Nested Pages Migrator which is not preserving modification dates generated by the Confluence XML extension.

@trrenty
Copy link
Contributor

trrenty commented Jan 19, 2024

Hello, @mouhb . I believe that this is the expected thing to happen. Running a renaming job (what NPM does) on XWiki will add a new version to the renamed/moved page with the same date as the execution time.

Page before moving:
image

Page after moving:
image

I don't really think we should work around how the refactoring job functions (unless the majority of people that use the application need it). Maybe a script would be a better solution for whoever needs it.

@mouhb
Copy link
Author

mouhb commented Jan 19, 2024

Hello, @mouhb . I believe that this is the expected thing to happen. Running a renaming job (what NPM does) on XWiki will add a new version to the renamed/moved page with the same date as the execution time.

Page before moving: image

Page after moving: image

I don't really think we should work around how the refactoring job functions (unless the majority of people that use the application need it). Maybe a script would be a better solution for whoever needs it.

This issue was reported by a client and for them it is very important to keep the original modification dates from confluence. I don't know if other users asked for it, maybe @snazare knows more about this. And yes, a script would be a solution for the issue.

@raphj
Copy link
Contributor

raphj commented Feb 13, 2024

Probably fixed by https://jira.xwiki.org/browse/CONFLUENCE-196, please reopen if it's not the case.

@raphj raphj closed this as completed Feb 13, 2024
@raphj raphj assigned raphj and unassigned trrenty Feb 13, 2024
@raphj raphj added this to the 1.11.0 milestone Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

3 participants