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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: High
    • None
    • Affects Version/s: all
    • None
    • 9
    • Severity 2 - Major
    • 13

      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.

            Assignee:
            Cassio Lima (Inactive)
            Reporter:
            Ashish Kotha
            Votes:
            16 Vote for this issue
            Watchers:
            21 Start watching this issue

              Created:
              Updated:
              Resolved: