Children display macro is broken when using Rich content and displaying attachments as link

XMLWordPrintable

    • 4
    • Severity 3 - Minor

      Summary

      Using the Children Display macro with the attribute excerptType set to rich content, the macro will appear as broken if one of the children pages to be displayed has an attachment displayed as a link instead of thumbnail.

      Environment

      • Confluence Cloud 1000.1223.2

      Steps to Reproduce

      1. Put a Children Display macro on a page.
      2. Display an attachment as link on a child of the parent page from above.

      Expected Results

      The Children Display macro displays its content properly.

      Actual Results

      The Children Display macro displays the following error message on the page:

      Error rendering macro 'children' : [com.ctc.wstx.exc.WstxLazyException] Duplicate attribute 'data-linked-resource-id'. at [row,col {unknown-source}]: [1,982]

      Following error is displayed in Confluence logs:

      2017-04-24 17:30:24.218380500  -- url: /wiki/display/spacekey/pagetitle | page: PAGEID | traceId: c8cb882505747d21 | userName: sysadmin | referer: https://CloudURL.atlassian.net/wiki/pages/editpage.action?pageId=PAGEID | action: viewpage
      2017-04-24 17:30:24.218381500 [com.ctc.wstx.exc.WstxLazyException] com.ctc.wstx.exc.WstxParsingException: Duplicate attribute 'data-linked-resource-id'.
      2017-04-24 17:30:24.218419500  at [row,col {unknown-source}]: [1,679]
      

      Workaround

      Display attachment as thumbnail and not link to display the Children Display macro properly

            Assignee:
            Unassigned
            Reporter:
            ManuR (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved: