Unable to download json detailed log if there is invalid format

XMLWordPrintable

    • 8
    • Severity 3 - Minor
    • 0

      Summary

      Unable to download json detailed log if the json file contain invalid format

      Steps to Reproduce

      Export any Jira issue in json format and edit the due date format (see below):

       "duedate": ",\"",
      

      Actual Result

      It redirects to https://<Cloud URL>.atlassian.net/rest/jira-importers-plugin/1.0/importer/com.atlassian.jira.plugins.jim-plugin:jsonImporter/log with below error message:

      This <Cloud URL>.atlassian.net page can’t be found It may have been moved or deleted.
      HTTP ERROR 410
      

      Expected Result

      The log should be downloaded.

      Stack Trace

            	 msg:	 There was a problem validating the json file. The fields [issues, duedate] are not valid.	
          	 stack:	 java.lang.RuntimeException: There was a problem validating the json file. The fields [issues, duedate] are not valid.
      	at com.atlassian.jira.plugins.importer.sample.SampleDataImporterImpl.parseSampleData(SampleDataImporterImpl.java:71)
      	at com.atlassian.jira.plugins.importer.imports.taskrunners.JsonImporterTaskRunner.createDataBean(JsonImporterTaskRunner.java:85)
      

        1. screenshot-1.png
          17 kB
          Adven
        2. Screen Shot 2018-11-27 at 10.20.41.png
          11 kB
          Leonardo De Almeida
        3. Screen Shot 2018-11-27 at 10.20.53.png
          20 kB
          Leonardo De Almeida

            Assignee:
            Unassigned
            Reporter:
            Adven (Inactive)
            Votes:
            7 Vote for this issue
            Watchers:
            17 Start watching this issue

              Created:
              Updated:
              Resolved: