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

Getting 404 when accessing macro content via REST when macro is nested

    XMLWordPrintable

Details

    Description

      Hi,

      The problem occurs if we try to nest a macro within another macro. To be concrete, we try to nest the Beautiful Math macro within the Numbered Headings Macro .

      If we don't nest, we can display both macros on a page without any issues. But if we need the page numbered we have to include the numbered headings macro and for formulas we need the Beautiful Math Macro too. In this situation we get a macroId for the Beautiful Math but when requesting the macro details by /rest/api/content/ID/histroy/ID/macro/id/ID on request we get 404 response code.

      To make it more clear, we used cURL to compare the two cases (nested macro and not nested) and got different results (only in the not nested case we were able to retrieve the macro content). Curl statements and their results are listed in the attachment.

      Thanks for any help!

      Best regards,
      Michael from Mibex Software

      Attachments

        1. macro_renderrequests.txt
          3 kB
          Mibex Software
        2. macros_nested_edit_mode.png
          54 kB
          Mibex Software
        3. macros_nested.png
          32 kB
          Mibex Software
        4. macros_not_nested.png
          38 kB
          Mibex Software
        5. QQ20160108-0.png
          230 kB
          Ran
        6. QQ20160108-1.png
          53 kB
          Ran
        7. QQ20160108-2.png
          49 kB
          Ran
        8. QQ20160108-3.png
          100 kB
          Ran
        9. QQ20160108-4.png
          141 kB
          Ran
        10. QQ20160108-5.png
          59 kB
          Ran
        11. QQ20160108-6.png
          68 kB
          Ran

        Issue Links

          Activity

            People

              rading Ran
              c0a282aaf163 Mibex Software
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: