Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-60453

Import from Confluence Cloud to Server breaks due to introduction of new field external_group_id in Content_perm in Cloud

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: High High
    • None
    • all
    • None

      Issue Summary

      Space import from Cloud to Server/DC breaks due to introduction of new field external_group_id in Content Permission

      Steps to Reproduce

      1. Take a space export from Cloud
      2. Import it into Confluence server

      Expected Results

      Import should be successful

      Actual Results

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

      com.atlassian.confluence.importexport.ImportExportException: Unable to complete import: Error while importing backup: could not resolve property: groupExternalId of: com.atlassian.confluence.security.ContentPermission
      

      Workaround

      The workaround would be to replace all occurrences of groupExternalId. You can use below command to do that:

      mv entities.xml entities.xml.orig
      awk '{gsub("<property name=\"groupExternalId\"/>","")}1' entities.xml.orig > entities.xml
      sed -i '/<property name="groupExternalId">/d' entities.xml
      

      Then package entities.xml back into the original XML Zip and attempt the import again.

              0d0485f9a8f7 Cassio Lima (Inactive)
              akotha@atlassian.com Ashish Kotha
              Votes:
              16 Vote for this issue
              Watchers:
              21 Start watching this issue

                Created:
                Updated:
                Resolved: