Confluence API fails to create pages with links

XMLWordPrintable

    • Severity 1 - Critical

      Issue Summary

      The Create page REST API endpoint recently started to return a 400 (Bad Request) error when attempting to create pages with ri:page elements in ac:link macros.

      Steps to Reproduce

      Send a POST request with the following body to the /wiki/api/v2/pages endpoint (replace the uppercase placeholders SPACE_ID, PARENT_PAGE_ID, and PAGE_TITLE with actual values):

       

      {
        "spaceId": "SPACE_ID",
        "status": "current",
        "title": "Example",
        "parentId": "PARENT_PAGE_ID",
        "body": {
          "representation": "storage",
          "value": "<ac:link ac:card-appearance=\"inline\"><ri:page ri:content-title=\"PAGE_TITLE\" /><ac:link-body>PAGE_TITLE</ac:link-body></ac:link>"
        }
      }

       

      The endpoint responds with the following error instead of creating the page:

      {
        "errors": [
          {
            "status": 400,
            "code": "BAD_REQUEST",
            "title": "Content contains unsupported extensions and cannot be edited in Fabric editor",
            "detail": null
          }
        ]
      } 

       

      Expected Results

      The endpoint should create the page.

      Actual Results

      400 error:

      {
        "errors": [
          {
            "status": 400,
            "code": "BAD_REQUEST",
            "title": "Content contains unsupported extensions and cannot be edited in Fabric editor",
            "detail": null
          }
        ]
      } 

      Workaround

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

              Assignee:
              Brandon Byiringiro
              Reporter:
              Pablo Machado
              Votes:
              5 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: