When running Confluence Cloud Migration Assistant after upgrade, an exception will be thrown when running a migration.
Steps to Reproduce
- Install a version of Confluence Cloud Migration Assistant lower than 3.2.5
- Prepare a plan with Users and Groups
- Upgrade Confluence Cloud Migration Assistant to version 3.2.5
- Run a migration
The migration succeeds and no errors are thrown in the logs.
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
32[INFO] [talledLocalContainer] at com.atlassian.migration.agent.service.catalogue.PlatformService.getProgress(PlatformService.java:181)
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;