Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-7230

Incorrect task order of MigrateVersionWorkspacesToNewStructureTask

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 5.5.6, 5.5.7, 5.5.8, 5.6, 5.6.1
    • Fix Version/s: None
    • Component/s: installation
    • Labels:
      None

      Description

      During Weblaw migration, we got an issue Task 'Migrate version workspace' failed caused by The move operation was not completed due to an item with the same name already present. The issue was fixed by https://jira.magnolia-cms.com/browse/MAGNOLIA-7006.

      It seems to me that there is a wrong task order as the MigrateVersionWorkspacesToNewStructureTask (5.5.0) was run BEFORE the RenameVersionNodesTask (5.5.4).

      But the MigrateVersionWorkspacesToNewStructureTask should run AFTER the RenameVersionNodesTask

      CoreModuleVersionHandler class

      register(DeltaBuilder.update("5.5", "")
                      .addTask(new MigrateVersionWorkspacesToNewStructureTask(repositoryManager))
                      .addTasks(getLockableMixinAdditionTasksForAllWorkspaces())
                      .addTask(new NodeExistsDelegateTask("Add korean language into system languages", "/server/i18n/system/ko", null,
                              new BootstrapSingleModuleResource("", "", "config.server.i18n.system.xml", "/system/languages/ko")))
              );
      
              register(DeltaBuilder.update("5.5.4", "")
                      .addTask(new BootstrapSingleModuleResource("Add mime mapping for YAML", "Add mime mapping for YAML", "config.server.MIMEMapping.xml", "/MIMEMapping/x-yaml"))
                      .addTask(new RenameVersionNodesTask(repositoryManager))
              );
      

        Checklists

        Acceptance criteria

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                Unassigned Unassigned
                Reporter:
                thanh.lehai Le Hai Thanh
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                  Dates

                  Created:
                  Updated:

                    Checklists

                    Bug DoR
                    DoD