Confluence storage format of macro content not found when using nested block macro

XMLWordPrintable

    • Severity 3 - Minor

      Hi,

      We have a Confluence connect macro (outputType "block") that works great as long as we do not nest it inside other Confluence macros. If we nest the macro, when requesting the macro details by /rest/api/content/ID/history/ID/macro/id/ID we just get a 404 response.

      Without nesting everything is okay:

      curl -u myuser https://myhost.atlassian.net/wiki/rest/api/content/29169283/history/26/macro/id/5816c11d-068e-5adc-b511-40b2a7736eff 
      response: 
      {"name":"latex-macro-block","body":"\\frac{n!}{k!(n-k)!} = \\binom{n}{k}","_links":{"base":"https://myhost.atlassian.net/wiki","context":"/wiki"}}
      

      But if we add our macro to the contents of another macro, we get a 404 response:

      curl -u myuser https://myhost.atlassian.net/wiki/rest/api/content/29169283/history/25/macro/id/5816c11d-068e-5adc-b511-40b2a7736eff
      response:
      {"statusCode":404,"data":{"authorized":false,"valid":true,"errors":[]},"message":"No macro found on content id : ContentId{id=29169283} with version: 25 and macroId: 5816c11d-068e-5adc-b511-40b2a7736eff"}
      

      Is this a known problem? Any workarounds possible?

      Please find attached the Confluence storage format with a nested macro that causes this issue.

      Thanks in advance,
      Michael

            Assignee:
            Ran
            Reporter:
            Mibex Software
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: