Validate Import does not detect Create Issue transition Validator restrictions

XMLWordPrintable

    • 7
    • 18
    • Severity 3 - Minor
    • 3

      Summary

      Import Issues from CSV does not respect Create Issue transition Validator in Workflow.

      Steps to Reproduce

      1. Add a workflow validator to the Create Issue transition, other than the Create Issue permission validator in a project/Issue type's workflow e.g. Close Issue permission validator or 3rd party validator.
      2. Try to import issues via CSV from the Issues Menu into that project/issuetype, without meeting the validation criteria e.g. user not having Close Issue permission
      3. Click the Validate Import button after submitting your CSV and/or configuration files
      4. Proceed to import.

      Expected Results

      • Validate Import should report that no issue will be created since Create Issue validator restriction is not met.
      • No issues should be created

      Actual Results

      • Validate Import reports no issues, and promises to create issues
      • Fatal error occurs due to NullPointerException when you proceed to import.
      • No clear error message is given to explain the cause of the exception. Detailed log records:
        2015-09-26 01:52:50,882 INFO - Importer started!
        2015-09-26 01:52:50,882 INFO - Engine is running in Import mode
        2015-09-26 01:52:50,883 INFO - All issues will be imported to project: testcsvimport (TESCSV)
        2015-09-26 01:52:50,884 INFO - Creating issue: [externalId='autoid-1673678947705695620', summary='CSV test']
        2015-09-26 01:52:50,884 INFO - Issue does not have issue type selected, the affected issues will be created with default issue type [Task]
        2015-09-26 01:52:50,894 ERROR - Fatal error during import
        java.lang.NullPointerException
        	at com.atlassian.jira.plugins.importer.imports.bulkcreate.engine.BulkCreateDataImporter.doImportIssues(BulkCreateDataImporter.java:236)
        	at com.atlassian.jira.plugins.importer.imports.bulkcreate.engine.BulkCreateDataImporter.runImporterEngine(BulkCreateDataImporter.java:173)
        	at com.atlassian.jira.plugins.importer.imports.bulkcreate.engine.BulkCreateDataImporter.doImport(BulkCreateDataImporter.java:148)
        	at com.atlassian.jira.plugins.importer.imports.importer.impl.ImporterCallable.call(ImporterCallable.java:26)
        	at com.atlassian.jira.plugins.importer.imports.importer.impl.ImporterCallable.call(ImporterCallable.java:15)
        	at com.atlassian.jira.task.TaskManagerImpl$TaskCallableDecorator.call(TaskManagerImpl.java:528)
        	at com.atlassian.jira.task.TaskManagerImpl$TaskCallableDecorator.call(TaskManagerImpl.java:491)
        	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        	at com.atlassian.jira.task.ForkedThreadExecutor$ForkedRunnableDecorator.run(ForkedThreadExecutor.java:254)
        	at java.lang.Thread.run(Thread.java:745)
        

      Workaround

      • You would need a JIRA admin to check or remove the validator requirements in the Create Issue transition for the project's workflow.

              Assignee:
              Unassigned
              Reporter:
              Anonymous
              Votes:
              9 Vote for this issue
              Watchers:
              19 Start watching this issue

                Created:
                Updated: