Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-77969

Retrieving ADF content from the API differs for the same contentId

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Medium
    • Page - Content
    • None

    Description

      Issue Summary

      Using the API to retrieve ADF content

      The response from the endpoint '/wiki/api/v2/pages?id=${contentId}'   and '/wiki/api/v2/pages/${contentId}'  differs from each other in some pages while the ADF content is requested.

      This does not happen with the storage format

      Steps to Reproduce

      1. Using the API to retrieve the same content using the same endpoints but with different parameters (where version 5 is the latest, but could be any version  >2)
      response = await fetch(`https://${window.location.host}/wiki/api/v2/pages?id=${contentId}&space-id=${spaceId}&body-format=atlas_doc_format&version=5`)
      response.response = await response.json()
      response2 = await fetch(`https://${window.location.host}/wiki/api/v2/pages/${contentId}?body-format=atlas_doc_format`)
      response2.response = await response2.json()
      response.response.results[0].body.atlas_doc_format.value === response2.response.body.atlas_doc_format.value

      Expected Results

      Responses should be equal in the same endpoint using the same parameters as it is retrieving the same content

      Actual Results

      Responses might be different for some of the content

      Workaround

      No

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              188f830ca5ca Michael Gonzalez
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: