Uploaded image for project: 'Migration Platform'
  1. Migration Platform
  2. MIG-828

Running a migration causes an IllegalArgumentException on MigrateUsersTask.scoped

    XMLWordPrintable

Details

    • 1
    • Severity 3 - Minor

    Description

      Issue Summary

      When running Confluence Cloud Migration Assistant after upgrade, an exception will be thrown when running a migration.

      Steps to Reproduce

      1. Install a version of Confluence Cloud Migration Assistant lower than 3.2.5
      2. Prepare a plan with Users and Groups
      3. Upgrade Confluence Cloud Migration Assistant to version 3.2.5
      4. Run a migration

      Expected Results

      The migration succeeds and no errors are thrown in the logs.

      Actual Results

      The below exception is thrown in the atlassian-confluence.log file:

      org.hibernate.PropertyAccessException: Null value was assigned to a property [class com.atlassian.migration.agent.entity.MigrateUsersTask.scoped] of primitive type setter of com.atlassian.migration.agent.entity.MigrateUsersTask.scoped
      2[INFO] [talledLocalContainer] 	at 
      ...
      com.atlassian.migration.agent.service.impl.DefaultPlanService.getMigrateAppsTask(DefaultPlanService.java:100)
      32[INFO] [talledLocalContainer] 	at com.atlassian.migration.agent.service.catalogue.PlatformService.getProgress(PlatformService.java:181)
      

      Workaround

      Update the database to provide a default value for the scoped value for Migrate Users task with

      update mig_task set scoped = true where tasktype = 'USERS' AND scoped is null;

      If you're on Oracle try (capitalisation may be required for table and column name

      update mig_task set scoped = 1 where tasktype = 'USERS' AND scoped is null;

       

      Attachments

        Issue Links

          Activity

            People

              gautencio@atlassian.com Gwen Autencio
              jrichards@atlassian.com James Richards
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: