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

Labels are not populated when importing zip with an empty .feature file

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • REST API
    • None
    • UNCOVERED

    Description

      If you try to import a features zip file containing an empty .feature using the REST API, the import completes but does not populates the Labels field with the folder path, generating the following error in atlassian-jira.log:

      2022-03-28 19:40:44,207+0000 http-nio-8080-exec-6 ERROR acristiano 1180x90033x1 1krwttc 172.17.0.1 /rest/raven/2.0/import/feature [c.x.r.t.service.impl.TestImportServiceImpl] Error deserializing the Zip Document, one of the Gherkin Documents or the Gherkin Feature is null.
      

      The expected behavior should be for the API endpoint to ignore empty files and complete the process as intended originally, by populating the Labels field if a .feature in the same zip is imported again.

      Attachments

        Activity

          People

            helder.ferreira Helder Ferreira
            alessandro.cristiano Alessandro Cristiano [X] (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: