Uploaded image for project: 'Jira Platform Cloud'
  1. Jira Platform Cloud
  2. JRACLOUD-79443

Site Import fails with Error: java.lang.NullPointerException: userName

XMLWordPrintable

      Issue Summary

      While restoring a Jira site backup, the following error is thrown

       

      There was an error importing file xyz.zip: Validation failed. Following issues were reported:
      Error importing data: java.lang.NullPointerException: userName

       

      Steps to Reproduce

      1. Import a Server instance backup into Cloud through the Restore System menu

      Expected Results

      Import completes successfully

      Actual Results

      The above exception is thrown

       

      Workaround

      This error may be thrown when users do not have a valid email address (name@domain.com). This can be addressed by finding and updating these user records in the xml file or on the Server instance before generating a new backup file.

      These users might be missing an emailAddress entity in the xml altogether or have an empty emailAddress entity that looks like:

      emailAddress=""
      emailAddress=" "
      email=""
      email=" "

      Note: There should be a valid email. A NULL or spaces will not resolve this problem.

              Unassigned Unassigned
              rsaunders@atlassian.com Rob Saunders
              Votes:
              5 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: