Confluence REST API not returning web resources

XMLWordPrintable

    • 3
    • Major
    • 6

      Issue Summary

      Some Confluence REST APIs allow web resources to be returned to help with the rendering of content. This is done by specify an expand parameter when making the API call. Example APIs allowing this include:

      Note that the underlying issue could be identical to that of CONFCLOUD-71603.

      Also see https://community.developer.atlassian.com/t/show-macros-within-dynamic-macros/45476 for further context.

      Steps to Reproduce

      1. Call a REST API that supports the returning of web resources by adding an expand query parameter as follows: [api-path]?expand=webresource.superbatch.metatags,webresource.tags.all. This call may be from the app server using JWT authentication or from an app iframe via AP.request.
      2. Observe the content of the field `webresource.tags.all` returned in the response.

      Expected Results

      The content of the field `webresource.tags.all` includes all CSS and JS resources necessary to render content providing experiences identical to Confluence.

      Actual Results

      The content of the field `webresource.tags.all` only includes a colors.css resource.

      Workaround

      None

            Assignee:
            Alex Williams
            Reporter:
            Dugald Morrow
            Votes:
            11 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: