Uploaded image for project: 'Xray for Jira'
  1. Xray for Jira
  2. XRAY-8157

Import from HPQC ALM fails to bring attachments

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 6.0.3
    • HPQC
    • Xray 2022 S1, Xray 2022 S2

    Description

      When using the HP QC/ALM Importer option on Jira import wizard (Projects > Import External projects), all issues are imported but step attachments are not being recorded as seen in the logs below.

      Issue happens on Xray 5.1.1 only and was not reproducible from 5.1.0 and below.

       

      atlassian-jira.log

      2021-11-04 14:04:14,099-0300 ForkJoinPool.commonPool-worker-3 ERROR acristiano 721x1491x1 1nspwv7 0:0:0:0:0:0:0:1 /rest/plugins/1.0/com.xpandit.plugins.xray-key/license [c.x.r.hpqcimport.mapper.QCTestMappingImpl] Failed to import Design-Step Attachment WIN_20190924_13_58_14_Pro.jpg  to JIRA Issue Step 3
      com.atlassian.jira.web.util.AttachmentException: An error occured while attaching WIN_20190924_13_58_14_Pro.jpg: Unable to record temporary attachment in your session. Please reload the page and try again.
          at com.xpandit.raven.service.impl.RavenAttachmentServiceImpl.a(Unknown Source)
          at com.xpandit.raven.service.impl.RavenAttachmentServiceImpl.a(Unknown Source)
          at com.xpandit.raven.service.impl.RavenAttachmentServiceImpl.a(Unknown Source)
          at com.xpandit.raven.hpqcimport.mapper.QCTestMappingImpl.addTestStepsAttachments(Unknown Source)
          at com.xpandit.raven.hpqcimport.mapper.QCTestMappingImpl.lambda$createStep$1(Unknown Source)
          at com.xpandit.raven.util.W.d(Unknown Source)

      hpqc_log

      2021-11-04 14:02:44,670 INFO - --------------------------------------------------------------
      2021-11-04 14:02:44,673 INFO - Starting to obtain tests from HP QC/ALM.
      2021-11-04 14:02:44,674 INFO - Project Domain is DEFAULT
      2021-11-04 14:02:44,675 INFO - Project is ATT
      2021-11-04 14:02:44,906 INFO - Exists 791 potential HP QC/ALM tests to be imported.
      2021-11-04 14:02:44,908 INFO - 786 HP QC/ALM Tests will be imported to project with key HPQC.
      2021-11-04 14:02:44,908 INFO - HP QC/ALM Tests will be imported to project with label qcimport
      2021-11-04 14:02:44,908 INFO - --------------------------------------------------------------
      2021-11-04 14:02:44,909 INFO - Starting to import tests from HP QC/ALM into JIRA Issues.
      2021-11-04 14:02:44,910 INFO - Successfully obtained HP QC/ALM Test with id 8. It will be imported.
      ...
      2021-11-04 14:15:29,002 INFO - Successfully obtained HP QC/ALM Test with id 776. It will be imported.
      2021-11-04 14:15:29,804 INFO - Finished importing 786 HP QC/ALM tests. 786 JIRA Issues created.
      2021-11-04 14:15:29,804 INFO - Finished import with 0 errors and 8 warnings.
      2021-11-04 14:15:29,806 INFO - Warnings:
      2021-11-04 14:15:29,807 INFO - 1 - HP QC/ALM Design-Step 1 in test with id 1009 has Name blank.
      2021-11-04 14:15:29,807 INFO - 2 - HP QC/ALM Design-Step 1 in test with id 1001 has Expected Result blank.
      2021-11-04 14:15:29,808 INFO - 3 - HP QC/ALM Design-Step 2 in test with id 1002 has Expected Result blank.
      2021-11-04 14:15:29,808 INFO - 4 - HP QC/ALM Design-Step 3 in test with id 1003 has Description blank.
      2021-11-04 14:15:29,808 INFO - 5 - HP QC/ALM Design-Step 3 in test with id 1003 has Expected Result blank.
      2021-11-04 14:15:29,808 INFO - 6 - HP QC/ALM Design-Step 1 in test with id 1007 has Name blank.
      2021-11-04 14:15:29,808 INFO - 7 - Failed to import Design-Step Attachment f.png
      2021-11-04 14:15:29,808 INFO - 8 - Failed to import Design-Step Attachment WIN_20190924_13_58_14_Pro.jpg
      

      Attachments

        Activity

          People

            hjfr Hugo Rodrigues [X] (Inactive)
            alessandro.cristiano Alessandro Cristiano
            Votes:
            5 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: