-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Low
-
Component/s: Page - Content APIs, Page - Editor - Collaborative editing
-
4
-
Severity 3 - Minor
-
4
Issue Summary
When updating a draft using the REST API (PUT /wiki/rest/api/content/{id}?status=draft), the draft's body.storage will be updated but those changes won't take effect on the editor.
When the page is edited through the UI, the old contents are shown.
Steps to Reproduce
- Create a page and copy its ID
- Perform the following request (replace the PAGE_ID and the INSTACE_URL)
fetch("https://INSTACE_URL/wiki/rest/api/content/450953226?status=draft", { "headers": { "content-type": "application/json", }, "body": "{\"version\":{\"number\":1},\"type\":\"page\",\"status\":\"draft\",\"title\":\"Page title - updated through API\",\"body\":{\"storage\": {\"value\": \"<p>Test draft</p>\",\"representation\": \"storage\"}}}", "method": "PUT", })
- Edit the page through the UI
Expected Results
The draft should contain "Test draft"
Actual Results
The draft still shows the old contents
Workaround
Currently, the only available workaround is to force the draft to refresh through the following request after the update:
fetch("https://INSTANCE_URL/wiki/rest/synchrony/1.0/content/PAGE_ID/recovery?behind=SYNCHRONY", { "headers": { "accept": "*/*", }, "body": null, "method": "PUT" });
- relates to
-
CONFCLOUD-84847 Show "Draft Active" banner in editor when unpublished draft differs from published version
- Gathering Interest