-
Type:
Bug
-
Resolution: Fixed
-
Priority:
High
-
Component/s: Ecosystem
-
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
- relates to
-
CONFCLOUD-60501 Macro body resource stripping sub macros
-
- Closed
-