Details
-
Bug
-
Resolution: Timed out
-
Low
-
14
-
Minor
-
Description
The error displayed on screen after failing is:
Error importing data: com.crowd.exception.embedded.InvalidGroupException: com.atlassian.crowd.exception.InvalidGroupException: Group name may not contain leading or trailing whitespace.
The import fails and offers you the option of trying the import again.
Problem:
When a entities.xml contains a group name with leading or trailing whitespaces the log shows this error:
cloud.atlassian.provisioning.exception.PermanentProvisioningFailureException: Import task failed: [Error importing data: com.atlassian.crowd.exception.embedded.InvalidGroupException: com.atlassian.crowd.exception.InvalidGroupException: Group name may not contain leading or trailing whitespace] at com.atlassian.jira.internal.rest.CloudBackupManager.startImport(CloudBackupManager.java:97) at com.atlassian.jira.internal.rest.ImportResource.lambda$importArchive$1(ImportResource.java:76) at com.atlassian.jira.internal.rest.AbstractCloudProvisionerResource.lambda$withTenantedWorkContext$0(AbstractCloudProvisionerResource.java:69) at com.atlassian.jira.internal.filter.InternalResource.withWorkContext(InternalResource.java:103) at com.atlassian.jira.internal.rest.AbstractCloudProvisionerResource.withTenantedWorkContext(AbstractCloudProvisionerResource.java:67) at com.atlassian.jira.internal.rest.ImportResource.importArchive(ImportResource.java:75) at com.atlassian.jira.internal.rest.ImportResource.lambda$post$0(ImportResource.java:66) at com.atlassian.jira.internal.rest.AsyncCloudTaskRunner$AsyncCloudProvisionerHelper.wrapTask(AsyncCloudTaskRunner.java:148) at com.atlassian.jira.internal.rest.AsyncCloudTaskRunner$AsyncCloudProvisionerHelper.lambda$runAsync$0(AsyncCloudTaskRunner.java:128) at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1590) at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1582) at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
Workaround:
Manually remove the whitespace on every group appearance in entities.xml and import again. In this case, there was a whitespace after the group name in the entity, in this format: "Group Name ". So I have deleted the whitespace after Name, then imported again and it was successful.