Import Fails if The User Has Different Usernames in Source and Destination Instance (Short term fix)

XMLWordPrintable

    • 19
    • Severity 3 - Minor

      Summary

      Space import fails due to the username of a user is different in the instances.

      Environment

      • Cloud to Cloud space import.

      Steps to Reproduce

      1. In Confluence A, create a user with username like testuser
      2. Restrict a page with the user in Step 1
      3. Export the space
      4. Use the same email address to signup for Confluence B (so that the user will get created with username 'admin')
      5. Import the backup into Confluence B

      Expected Results

      The import is done without any issue

      Actual Results

      It shows error in importing the space.

      Application logs:

      ERROR: duplicate key value violates unique constraint "cp_unique_user"
        Detail: Key (cps_id, cp_type, username)=(431424995, View, <hash>) already exists.
      

      Workaround

      Contact Atlassian support in fixing the incosistency in the username

            Assignee:
            Vladimir Churyukin
            Reporter:
            Ting
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: