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

            Benjamin Suess made changes -
            Fix Version/s Original: Insight Macro for Confluence 1.7.1 [ 105917 ]
            Fix Version/s New: Insight Macro for Confluence 1.7.3 [ 105831 ]
            Benjamin Suess made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Waiting for Release [ 12075 ] New: Closed [ 6 ]
            Benjamin Suess made changes -
            Status Original: In Progress [ 3 ] New: Waiting for Release [ 12075 ]
            Benjamin Suess made changes -
            Status Original: Short Term Backlog [ 12074 ] New: In Progress [ 3 ]
            Benjamin Suess made changes -
            Fix Version/s New: Insight Macro for Confluence 1.7.1 [ 105917 ]
            Benjamin Suess made changes -
            Assignee New: Benjamin Suess [ c8bcca445054 ]
            SET Analytics Bot made changes -
            Support reference count New: 1
            Marc Dacanay made changes -
            Priority Original: Low [ 4 ] New: High [ 2 ]
            goose (Inactive) made changes -
            Status Original: Needs Triage [ 10030 ] New: Short Term Backlog [ 12074 ]
            Tiziana Marchionni made changes -
            Description Original: h3. 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

            h3. Steps to Reproduce
            # Import the NVD dataset into Assets
            # Use this dataset in the Assets Confluence Macro
            # Do not select ID label when selecting attributes
            # Export to PDF

            h3. Expected Results

            The export should succeed

            h3. Actual Results

            This error message will show in the Confluence Logs:

            {code:java}
            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)
            {code}

            The export will show a failed PDF:

             !Screenshot 2023-06-09 at 11.51.06.png|thumbnail!

            h3. Workaround
            Include the Label attribute when selecting attributes in the macro.
            New: h3. 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

            h3. Steps to Reproduce
            # Import the NVD dataset into Assets
            # Use this dataset in the Assets Confluence Macro and filter object type Vulnerability as an example
            # Do not select ID label when selecting attributes
            # Export to PDF

            h3. Expected Results

            The export should succeed

            h3. Actual Results

            This error message will show in the Confluence Logs:

            {code:java}
            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)
            {code}

            The export will show a failed PDF:

             !Screenshot 2023-06-09 at 11.51.06.png|thumbnail!

            h3. Workaround
            Include the Label attribute when selecting attributes in the macro.

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

                Created:
                Updated:
                Resolved: