FogBugz import not working with attachments

XMLWordPrintable

    • 7.12
    • 13
    • Severity 1 - Critical
    • 1

      Summary

      In April 2018, Fogbugz started storing new attachments into Amazon S3 and migrated existing ones into S3 as well:
      https://support.fogbugz.com/hc/en-us/articles/360011263014-New-Features-2018-04-23. Jira fails to import migrated attachments (older than April 2018) but can import newer attachments, added after April 2018.

      It is possible to download the Fogbugz attachment using Fogbugz API.

      Environment

      Replication requires Fogbugz instance with cases having attachments older than April 2018

      Steps to Reproduce

      Try to import issues into JIRA using the FogBugz importer provided under JIRA's external system import.

      Expected Results

      Issues import successfully with their attachments

      Actual Results

      The import throws errors about certain attachments illustrated below

      2018-10-25 15:22:11,245 JiraTaskExectionThread-1 ERROR username 
      855x653x1 1qt0j4i 127.0.0.1 /secure/admin/ImporterLogsPage%21import.jspa 
      [c.a.j.p.i.i.importer.impl.AbstractDataImporter$1Thread[http-nio-8080-exec-7,5,main]] 
      Error retrieving attachment
      com.atlassian.jira.plugins.importer.imports.fogbugz.hosted.FogBugzRemoteException: 
      HTTP Error code HTTP/1.1 403 Forbidden [Content-Type: application/xml, 
      Transfer-Encoding: chunked, Connection: keep-alive, Date: Thu, 25 Oct 2018 
      20:22:10 GMT, Server: AmazonS3, X-Cache: Error from cloudfront, Via: 1.1 
      c3fb36940fb36cf227975bfb7c09ea6d.cloudfront.net (CloudFront), X-Amz-Cf-Id: 
      mKG_ETdkY4iIZIwLWYtrED5ah9rV6VCe--1KGDWYhrz_FBw2KHw==] 
      org.apache.http.conn.BasicManagedEntity@26af7748 returned by the server
      at 
      com.atlassian.jira.plugins.importer.imports.fogbugz.hosted.FogBugzAPIClient.getWithToken0(FogBugzAPIClient.java:167)
      

      Workaround

      Download attachments separately using FogBugz APIs and then import respective JIRA issues using the CSV importer or using JIRA's REST API.
      Relevant KBs
      Bulk import attachments to JIRA using REST API
      Importing data from CSV
      Export FogBugz cases to CSV
      FogBugz Knowledgebase

            Assignee:
            Unassigned
            Reporter:
            Eric Storch (Inactive)
            Votes:
            25 Vote for this issue
            Watchers:
            22 Start watching this issue

              Created:
              Updated:
              Resolved: