CSV Importer fails if the same file is used for Users and Groups Memberships

XMLWordPrintable

      If the same file is provided in the Importer Users File and Group Membership File fields, the Importer will fail in the last step of the import process:

              java.lang.NullPointerException
      	at com.atlassian.crowd.importer.importers.BaseImporter.mapContainersToUsers(BaseImporter.java:125)
      	at com.atlassian.crowd.importer.importers.BaseImporter.importGroupMemberships(BaseImporter.java:144)
      	at com.atlassian.crowd.importer.importers.BaseImporter.importUsersGroupsAndMemberships(BaseImporter.java:207)
      	at com.atlassian.crowd.importer.manager.ImporterManagerImpl.performImport(ImporterManagerImpl.java:35)
      	at com.atlassian.crowd.console.action.dataimport.CsvConfirmation.doExecute(CsvConfirmation.java:39)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:592)
      	at com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:358)
      

      See full stack trace attached.

      The UI should show an error message in the first Import Step or Crowd should support this use case.

        1. CSV_Import.htm
          18 kB
          Renan Battaglin

              Assignee:
              Unassigned
              Reporter:
              Renan Battaglin (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated: