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

XMLWordPrintable

    • 1
    • Severity 3 - Minor

      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.

            Assignee:
            Benjamin Suess
            Reporter:
            Tiziana Marchionni (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: