Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-45281

JSON importer can't import attachment with (chinese/korean/japanese) character

    XMLWordPrintable

Details

    • 6.03
    • 1
    • Severity 3 - Minor
    • Hide
      Atlassian Update – 06 September 2019

      Hi everyone,

      After reviewing the overall customer interest and impact of this bug report we have decided to close this issue down. Our analysis has shown that over time this issue hasn't collected a significant number of votes, watchers, comments, or support cases from customers and therefore has remained very low on our priority list. Given these findings we can conclude it will not be fixed in the foreseeable future and wish to be transparent about our priorities by closing it as Timed Out.

      Although we're aware this issue may be still important to those of you who were involved in the initial conversations around it, we want to be clear by managing your expectations regarding the likelihood of a fix for it. The Jira team do their best to prioritise the issues that have high and critical impact with broad pervasiveness reflected in series of different factors. You can learn more about this by reading our Bug Fixing Policy.

      To see what the Jira team is currently working on and has recently delivered see the following dashboards:

      We understand that hearing a decision like this can be disappointing, but we hope you'll appreciate our transparent approach to product priorities and communications. We will continue to watch this issue for further updates, so please feel free to share any thoughts in the comments.

      Thank you,

      Pawel Drygas,

      Jira Server Bugmaster

      Show
      Atlassian Update – 06 September 2019 Hi everyone, After reviewing the overall customer interest and impact of this bug report we have decided to close this issue down. Our analysis has shown that over time this issue hasn't collected a significant number of votes, watchers, comments, or support cases from customers and therefore has remained very low on our priority list. Given these findings we can conclude it will not be fixed in the foreseeable future and wish to be transparent about our priorities by closing it as Timed Out . Although we're aware this issue may be still important to those of you who were involved in the initial conversations around it, we want to be clear by managing your expectations regarding the likelihood of a fix for it. The Jira team do their best to prioritise the issues that have high and critical impact with broad pervasiveness reflected in series of different factors. You can learn more about this by reading our Bug Fixing Policy . To see what the Jira team is currently working on and has recently delivered see the following dashboards: Jira Server and Data Center: Recently resolved issues Jira Server and Data Center: Current work and future plans Jira Server and Data Center: Bug Fix Board We understand that hearing a decision like this can be disappointing, but we hope you'll appreciate our transparent approach to product priorities and communications. We will continue to watch this issue for further updates, so please feel free to share any thoughts in the comments. Thank you, Pawel Drygas, Jira Server Bugmaster

    Description

      Summary

      When trying to import attachment with (chinese/korean/japanese) character in it using JSON importer, issue get created with no attachment.

      Steps to Reproduce

      1. Import the attached JSON file using the JSON external importer.
      2. Sample JSON code:
        {
          "projects": [
            {
              "key": "MO",
              "name": null,
              "description": "",
              "issues": [
                {
                  "priority": "P4 (No Impact/Notify)",
                  "description": "ABC ABC",
                  "status": "Done",
                  "reporter": "user1",
                  "issueType": null,
                  "resolution": "Fixed",
                  "created": "2013-01-03T22:36:00",
                  "updated": "2013-01-03T22:36:00",
                  "resolutionDate": "2013-01-17T08:22:00",
                  "summary": "ABC ABC",
                  "assignee": "user1",
                  "watchers": [],
                  
                  "attachments": [
                    
                    {
                      "name": "QC공정(4M기준)_양1.png",
                      "attacher": "user1",
                      "created": "2015-09-08T09:51:12.1681238+08:00",
                      "uri": "file:///C:/Users/IT/Downloads/QC공정(4M기준)_양1.png",
                      "description": null
                    }
                  ],
                  "comments": [
                              ]
                }
              ]
            }
          ]
        }
        

      Expected Results

      Issue get created together with attachment.

      Actual Results

      Issue get created and no attachment. The below exception is thrown in the log file:

      2015-09-09 17:17:12,335 INFO - Import started by admin using com.atlassian.jira.plugins.importer.sample.SampleDataBean
      2015-09-09 17:17:12,336 INFO - ------------------------------
      2015-09-09 17:17:12,337 INFO - Importing: Users
      2015-09-09 17:17:12,337 INFO - ------------------------------
      2015-09-09 17:17:12,337 INFO - Only new items will be imported
      2015-09-09 17:17:12,337 INFO - 0 users associated with import. 0 new users were created and imported as active.
      2015-09-09 17:17:12,337 INFO - ------------------------------
      2015-09-09 17:17:12,337 INFO - Finished Importing : Users
      2015-09-09 17:17:12,337 INFO - ------------------------------
      2015-09-09 17:17:12,337 INFO - 0 users successfully created.
      2015-09-09 17:17:12,337 INFO - Retrieving projects...
      2015-09-09 17:17:12,338 INFO - Project ExternalProject{id=null, externalName=null, name=null, key=MO, url=null, lead=null, description=, projectCategoryName=null, avatarUrl=null, assigneeType=null, versionCount=0, componentCount=0, issueCount=1} already exists. Not imported
      2015-09-09 17:17:12,338 INFO - ------------------------------
      2015-09-09 17:17:12,338 INFO - Importing: Versions
      2015-09-09 17:17:12,339 INFO - ------------------------------
      2015-09-09 17:17:12,339 INFO - Only new items will be imported
      2015-09-09 17:17:12,339 INFO - ------------------------------
      2015-09-09 17:17:12,339 INFO - Finished Importing : Versions
      2015-09-09 17:17:12,339 INFO - ------------------------------
      2015-09-09 17:17:12,339 INFO - ------------------------------
      2015-09-09 17:17:12,339 INFO - Importing: Components
      2015-09-09 17:17:12,339 INFO - ------------------------------
      2015-09-09 17:17:12,339 INFO - Only new items will be imported
      2015-09-09 17:17:12,339 INFO - ------------------------------
      2015-09-09 17:17:12,339 INFO - Finished Importing : Components
      2015-09-09 17:17:12,339 INFO - ------------------------------
      2015-09-09 17:17:12,339 INFO - Retrieving custom fields...
      2015-09-09 17:17:12,339 INFO - ------------------------------
      2015-09-09 17:17:12,339 INFO - Importing: Issues
      2015-09-09 17:17:12,339 INFO - ------------------------------
      2015-09-09 17:17:12,339 INFO - Only new items will be imported
      2015-09-09 17:17:12,365 INFO - Importing issue: ExternalIssue{externalId=null, summary=ABC ABC, issueType=null}
      2015-09-09 17:17:12,699 WARN - An exception occurred dealing with attachment 'file:///C:/Users/IT/Downloads/양.png'.
      com.atlassian.jira.plugins.importer.imports.AttachmentImportException: An exception occurred dealing with attachment 'file:///C:/Users/IT/Downloads/양.png'.
      	at com.atlassian.jira.plugins.importer.imports.json.JsonAttachmentsProvider.getAttachmentForIssue(JsonAttachmentsProvider.java:46)
      	at com.atlassian.jira.plugins.importer.sample.SampleDataBean.getAttachmentsForIssue(SampleDataBean.java:113)
      	at com.atlassian.jira.plugins.importer.imports.importer.impl.DefaultJiraDataImporter.createIssue(DefaultJiraDataImporter.java:949)
      	at com.atlassian.jira.plugins.importer.imports.importer.impl.DefaultJiraDataImporter.importIssues(DefaultJiraDataImporter.java:775)
      	at com.atlassian.jira.plugins.importer.imports.importer.impl.DefaultJiraDataImporter.doImport(DefaultJiraDataImporter.java:401)
      	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(Unknown Source)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      	at java.util.concurrent.FutureTask.run(Unknown Source)
      	at com.atlassian.jira.task.ForkedThreadExecutor$ForkedRunnableDecorator.run(ForkedThreadExecutor.java:254)
      	at java.lang.Thread.run(Unknown Source)
      Caused by: java.io.IOException: The filename, directory name, or volume label syntax is incorrect
      	at java.io.WinNTFileSystem.canonicalize0(Native Method)
      	at java.io.WinNTFileSystem.canonicalize(Unknown Source)
      	at java.io.File.getCanonicalPath(Unknown Source)
      	at java.io.File.getCanonicalFile(Unknown Source)
      	at com.atlassian.jira.plugins.importer.imports.AttachmentImporter.importAttachmentFrom(AttachmentImporter.java:57)
      	at com.atlassian.jira.plugins.importer.imports.json.JsonAttachmentsProvider.getAttachmentForIssue(JsonAttachmentsProvider.java:41)
      	... 13 more
      2015-09-09 17:17:12,708 INFO - Reindexing last 1 issues imported ...
      2015-09-09 17:17:12,783 INFO - Reindexing took 74 ms.
      2015-09-09 17:17:12,784 INFO - 1 issues successfully created
      2015-09-09 17:17:12,784 INFO - ------------------------------
      2015-09-09 17:17:12,784 INFO - Finished Importing : Issues
      2015-09-09 17:17:12,784 INFO - ------------------------------
      2015-09-09 17:17:12,784 INFO - ------------------------------
      2015-09-09 17:17:12,784 INFO - Importing: Issue Links & Subtasks
      2015-09-09 17:17:12,784 INFO - ------------------------------
      2015-09-09 17:17:12,784 INFO - Only new items will be imported
      2015-09-09 17:17:12,784 INFO - ------------------------------
      2015-09-09 17:17:12,784 INFO - Finished Importing : Issue Links & Subtasks
      2015-09-09 17:17:12,784 INFO - ------------------------------
      2015-09-09 17:17:12,784 INFO - No issues need to be reindexed.
      

      Attachments

        1. import_error.png
          import_error.png
          95 kB
        2. JSON_import.json
          1.0 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mmuthusamy Moga
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: