Details
-
Bug
-
Resolution: Not a bug
-
Low
-
None
-
7.13.2
-
None
-
1
-
Severity 3 - Minor
-
Description
Issue Summary
The customer is using GET to fetch information from a source page,
GET /rest/api/content/11111111?spaceKey=TEST&expand=body.view
then POST to create a new target page(copy source page to target page).
POST /rest/api/content/
However, if there is a Table of Contents Macro in the page, it will not be generated in new page.
This is reproducible on Data Center: (yes)
Steps to Reproduce
- Create a page, insert a Table of Contents Macro.
- Using GET API (/rest/api/content/
{contentid}
) to fetch the page created.
- Copy the part of TOC into a file( toc.json ), and using this file to create new page.
- Run POST REST API to create page
curl -u admin:abc -X POST -H 'Content-Type: application/json' -d '@toc.json' "http://myconfluence:8090/rest/api/content"
Expected Results
Table of content macro will be generated in new page.
Actual Results
Table of content macro is not generated in new page.
Workaround
Using storage format instead of HTML
<ac:structured-macro ac:name=\"toc\" />