Uploaded image for project: 'Nested Pages Migrator Application'
  1. Nested Pages Migrator Application
  2. NPMIG-44

Error when a user have intentionally duplicated a document

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 0.5.1
    • 0.5
    • API

    Description

      Example of use case :

      • documents 'externalisation du SI.CMS_IAAS' and 'POLE PRODUCTION.CMS_IAAS' existing in the wiki, both having 'POLE PRODUCTION.Externalisation _DSI_Production' as parent

      This is the error raised while computing the plan :

      ERROR o.x.v.i.DefaultVelocityEngine  - Exception in macro #printPlan called at 741:dsi:NestedPagesMigration.Service[line 8, column 1] 
      org.xwiki.contrib.nestedpagesmigrator.MigrationException: An action with target [dsi:POLE PRODUCTION.Externalisation _DSI_Production.CMS_IAAS.WebHome] already exists.
      	at org.xwiki.contrib.nestedpagesmigrator.MigrationPlanTree.addAction(MigrationPlanTree.java:58)
      	at org.xwiki.contrib.nestedpagesmigrator.MigrationAction.createInstance(MigrationAction.java:122)
      	at org.xwiki.contrib.nestedpagesmigrator.internal.pages.PagesMigrationPlanCreator.createActionForTerminalDocument(PagesMigrationPlanCreator.java:348)
      	at org.xwiki.contrib.nestedpagesmigrator.internal.pages.PagesMigrationPlanCreator.createAction(PagesMigrationPlanCreator.java:291)
      	at org.xwiki.contrib.nestedpagesmigrator.internal.pages.PagesMigrationPlanCreator.convertDocumentAndParents(PagesMigrationPlanCreator.java:234)
      	at org.xwiki.contrib.nestedpagesmigrator.internal.pages.PagesMigrationPlanCreator.computeMigrationPlan(PagesMigrationPlanCreator.java:127)
      	at org.xwiki.contrib.nestedpagesmigrator.internal.job.MigrationPlanCreatorJob.runInternal(MigrationPlanCreatorJob.java:76)
      	at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:205)
      	at org.xwiki.job.AbstractJob.run(AbstractJob.java:188)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at java.lang.Thread.run(Thread.java:745)
      

      Attachments

        Activity

          People

            gdelhumeau Guillaume Delhumeau
            ralucamorosan Raluca Stavro
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: