Export view from GET page endpoint is not accurately reflecting pages

XMLWordPrintable

    • Severity 3 - Minor

      Issue Summary

      Similar to the bug https://jira.atlassian.com/browse/CONFCLOUD-78968, when using the endpoint https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page/#api-pages-id-get with the following parameter:

      Example request: https://\{YOUR_SITE}.atlassian.net/wiki/api/v2/pages/{PAGE_ID}?body-format=export_view

      The HTML returned by the endpoint doesn't reflect the page. Example:

       

      <span
          style="background: 
          url('/wiki/s/-2134469506/6452/08eb2178808393e91332b3b910588917f6eb3efc/1000.0.0-08eb21788083/_/download/resources/com.atlassian.confluence.plugins.confluence-view-file-macro:view-file-macro-resources/images/placeholder-medium-pdf.png'); 
          width: 333px; height: 95px; display: inline-block; padding-top: 155px; margin: 2px; border: 1px solid #ddd; 
          text-align: center; vertical-align: text-bottom; text-decoration: none; font-size: 12px; color: #000;">
          Page Prop issue-v3-20260…
      </span>

      All the styles returned don't reflect the actual page:

       

      Steps to Reproduce

      1. Set up Page A
        1. Add a Content properties (Page Property) macro
        2. Insert a PDF file into the value column
        3. Define the inline display view for the PDF attachment
        4. Publish the page and add a page label test
      2. Set up Page B
        1. Add a Content properties report (Page Property report) macro
        2. Edit the macro parameters and define the label test so that it references Page A
        3. Publish the page
      3. Use the Confluence API to return the export_view for Page B
        • https://\{YOUR_SITE}.atlassian.net/wiki/api/v2/pages/{PAGE_ID}?body-format=export_view

      Expected Results

      The export_view body should match the page. This example concerns inline links (attachments); however, it may also affect other styles.

      Actual Results

      Styles are matching to a card view, instead of the inline view:

       

      <span
          style="background: 
          url('/wiki/s/-2134469506/6452/08eb2178808393e91332b3b910588917f6eb3efc/1000.0.0-08eb21788083/_/download/resources/com.atlassian.confluence.plugins.confluence-view-file-macro:view-file-macro-resources/images/placeholder-medium-pdf.png'); 
          width: 333px; height: 95px; display: inline-block; padding-top: 155px; margin: 2px; border: 1px solid #ddd; 
          text-align: center; vertical-align: text-bottom; text-decoration: none; font-size: 12px; color: #000;">     
      IS-Test page.pdf
      </span>

       

      Workaround

      Currently, there is no known workaround for this behavior. A workaround will be added here when available

              Assignee:
              Unassigned
              Reporter:
              Pablo Machado
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: