Confluence "Content Report Table" macro produces invalid HTML in export_view mode

XMLWordPrintable

    • Severity 3 - Minor

      Issue Summary

      REST API https://<SITE>.atlassian.net/wiki/api/v2/pages/<PAGE_ID>?body-format=export_view returned the incorrect Page HTML format for the <table>. Which is breaking the functionality for the App.

      Steps to Reproduce

      1. Create a Confluence Page.
      2. Insert a new Content Report Table macro, use any label 'test' that exists on some pages. This would produce storage format like this:
      <ac:structured-macro ac:name="content-report-table" ac:schema-version="1" data-layout="default" ac:local-id="..." ac:macro-id="...">
          <ac:parameter ac:name="maxResults">20</ac:parameter>
          <ac:parameter ac:name="labels">test</ac:parameter>
      </ac:structured-macro> 

           3. Published and View the page in Confluence → everything looks normal.

           4. Request the export_view format, e.g. via REST AP https://<SITE>.atlassian.net/wiki/api/v2/pages/<PAGE_ID>?body-format=export_view:

       5. Closing angular bracket '>' is missing for the <table class ...... >

      <table class=\"aui content-report-table-macro with-extra-columns\"	
      <thead> 

      Expected Results

      <table class=\"aui content-report-table-macro with-extra-columns\"> <thead> 

      Actual Results

      <table class=\"aui content-report-table-macro with-extra-columns\" 

      Workaround

      Alternativly, You can use the 

      https://<SITE>.atlassian.net/wiki/api/v2/pages/<PAGE_ID>?body-format=view instead of export_view but it has lot of additional content.

              Assignee:
              Unassigned
              Reporter:
              Sachin
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: