Uploaded image for project: 'Jira Service Management Data Center'
  1. Jira Service Management Data Center
  2. JSDSERVER-13298

Assets Confluence Macro export an empty file if the label attribute is not selected in the macro configuration

      Issue Summary

      Assets Confluence Macro export an empty file if the label attribute is not selected in the macro configuration

      This is reproducible on Data Center: yes

      Steps to Reproduce

      1. Import the NVD dataset into Assets
      2. Use this dataset in the Assets Confluence Macro and filter object type Vulnerability as an example
      3. Do not select ID label when selecting attributes
      4. Export to PDF

      Expected Results

      The export should succeed

      Actual Results

      This error message will show in the Confluence Logs:

      ERROR [http-nio-27195-exec-5] [plugins.insight.export.ExportRenderer] render Export fail!
       -- url: /c7195/spaces/flyingpdf/pdfpageexport.action | page: 12355 | traceId: 123123123 | userName: abcd | referer: url | action: pdfpageexport
      java.util.NoSuchElementException: Collection contains no element matching the predicate.
      	at com.mindville.confluence.plugins.insight.export.ExportRenderer.getLabelAttributeValue(ExportRenderer.kt:352) 
      

      The export will show a failed PDF:

      Workaround

      Include the Label attribute when selecting attributes in the macro.

          Form Name

            [JSDSERVER-13298] Assets Confluence Macro export an empty file if the label attribute is not selected in the macro configuration

            No work has yet been logged on this issue.

              c8bcca445054 Benjamin Suess
              tmarchionni@atlassian.com Tiziana Marchionni
              Affected customers:
              0 This affects my team
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: