com.atlassian.jira.plugins.importer.imports.AttachmentImportException: An exception occurred dealing with attachment 'file:///C:/Users/IT/Downloads/양.png'.

Atlassian JIRA | Mogavenasan Muthusamy [Atlassian] | 1 year ago
  1. 0

    h3. Summary When trying to import attachment with (chinese/korean/japanese) character in it using JSON importer, issue get created with no attachment. h3. Steps to Reproduce # Import the attached JSON file using the JSON external importer. # Sample JSON code: {noformat} { "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": [ ] } ] } ] } {noformat} h3. Expected Results Issue get created together with attachment. h3. Actual Results Issue get created and no attachment. The below exception is thrown in the log file: {noformat} 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. {noformat}

    Atlassian JIRA | 1 year ago | Mogavenasan Muthusamy [Atlassian]
    com.atlassian.jira.plugins.importer.imports.AttachmentImportException: An exception occurred dealing with attachment 'file:///C:/Users/IT/Downloads/양.png'.
  2. 0

    h3. Summary When trying to import attachment with (chinese/korean/japanese) character in it using JSON importer, issue get created with no attachment. h3. Steps to Reproduce # Import the attached JSON file using the JSON external importer. # Sample JSON code: {noformat} { "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": [ ] } ] } ] } {noformat} h3. Expected Results Issue get created together with attachment. h3. Actual Results Issue get created and no attachment. The below exception is thrown in the log file: {noformat} 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. {noformat}

    Atlassian JIRA | 1 year ago | Mogavenasan Muthusamy [Atlassian]
    com.atlassian.jira.plugins.importer.imports.AttachmentImportException: An exception occurred dealing with attachment 'file:///C:/Users/IT/Downloads/양.png'.
  3. 0

    Started by user Vignesh Building in workspace C:\Program Files (x86)\Jenkins\workspace\SCM_job 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 hudson.scm.subversion.UpdateUpdater$TaskImpl.getSvnCommandToUse(UpdateUpdater.java:80) at hudson.scm.subversion.UpdateUpdater$TaskImpl.perform(UpdateUpdater.java:131) at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:162) at hudson.scm.SubversionSCM$CheckOutTask.perform(SubversionSCM.java:996) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:972) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:948) at hudson.FilePath.act(FilePath.java:1018) at hudson.FilePath.act(FilePath.java:996) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:897) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:833) at hudson.scm.SCM.checkout(SCM.java:485) at hudson.model.AbstractProject.checkout(AbstractProject.java:1269) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Finished: FAILURE

    Jenkins JIRA | 2 months ago | Vaira Vignesh T
    java.io.IOException: The filename, directory name, or volume label syntax is incorrect
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    The filename, directory name, or volume label syntax is incorrect (Windows)

    GitHub | 3 years ago | konstantinvlasenko
    java.io.IOException: The filename, directory name, or volume label syntax is incorrect
  6. 0

    The filename, directory name, or volume label syntax is incorrect

    GitHub | 3 years ago | konstantinvlasenko
    java.io.IOException: The filename, directory name, or volume label syntax is incorrect

    17 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.IOException

      The filename, directory name, or volume label syntax is incorrect

      at java.io.WinNTFileSystem.canonicalize0()
    2. Java RT
      File.getCanonicalFile
      1. java.io.WinNTFileSystem.canonicalize0(Native Method)
      2. java.io.WinNTFileSystem.canonicalize(Unknown Source)
      3. java.io.File.getCanonicalPath(Unknown Source)
      4. java.io.File.getCanonicalFile(Unknown Source)
      4 frames
    3. com.atlassian.jira
      TaskManagerImpl$TaskCallableDecorator.call
      1. com.atlassian.jira.plugins.importer.imports.AttachmentImporter.importAttachmentFrom(AttachmentImporter.java:57)
      2. com.atlassian.jira.plugins.importer.imports.json.JsonAttachmentsProvider.getAttachmentForIssue(JsonAttachmentsProvider.java:41)
      3. com.atlassian.jira.plugins.importer.sample.SampleDataBean.getAttachmentsForIssue(SampleDataBean.java:113)
      4. com.atlassian.jira.plugins.importer.imports.importer.impl.DefaultJiraDataImporter.createIssue(DefaultJiraDataImporter.java:949)
      5. com.atlassian.jira.plugins.importer.imports.importer.impl.DefaultJiraDataImporter.importIssues(DefaultJiraDataImporter.java:775)
      6. com.atlassian.jira.plugins.importer.imports.importer.impl.DefaultJiraDataImporter.doImport(DefaultJiraDataImporter.java:401)
      7. com.atlassian.jira.plugins.importer.imports.importer.impl.ImporterCallable.call(ImporterCallable.java:26)
      8. com.atlassian.jira.plugins.importer.imports.importer.impl.ImporterCallable.call(ImporterCallable.java:15)
      9. com.atlassian.jira.task.TaskManagerImpl$TaskCallableDecorator.call(TaskManagerImpl.java:528)
      10. com.atlassian.jira.task.TaskManagerImpl$TaskCallableDecorator.call(TaskManagerImpl.java:491)
      10 frames
    4. Java RT
      FutureTask.run
      1. java.util.concurrent.FutureTask.run(Unknown Source)
      2. java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      3. java.util.concurrent.FutureTask.run(Unknown Source)
      3 frames
    5. com.atlassian.jira
      ForkedThreadExecutor$ForkedRunnableDecorator.run
      1. com.atlassian.jira.task.ForkedThreadExecutor$ForkedRunnableDecorator.run(ForkedThreadExecutor.java:254)
      1 frame
    6. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame