REST API content expand=body.view fails to retrieve the body if a macro is present

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low
    • None
    • Affects Version/s: 7.13.7, 7.17.4
    • None
    • 3
    • Severity 3 - Minor

      Problem

      Making a REST API call with the parameter expand=body.view return the following error in the body instead of expanding the macro:

      <input type=\"hidden\" name=\"i18n-pagetree.error.permission\" value=\"Unable to load page tree. It seems that you do not have permission to view the root page.\" />
      

      Environment

      Steps to Reproduce

      1. Create a Confluence page Test containing a Page Tree macro
      2. Make the following REST API Call against the Test Page
        /rest/api/content/?spaceKey=TEST&title=Test&expand=body.view
        

      Expected Results

      The body is correctly retrieved and the page tree macro expanded.

      Actual Results

      In place of the page tree macro expansion this message is returned:

      <input type=\"hidden\" name=\"i18n-pagetree.error.permission\" value=\"Unable to load page tree. It seems that you do not have permission to view the root page.\" />
      

      Workaround

      N/A

      Notes

      Seems the same as per
      https://jira.atlassian.com/browse/CONFCLOUD-54192?jql=text%20~%20%22expand%3Dbody.view%22

            Assignee:
            Unassigned
            Reporter:
            Marco Salvi (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: