Details
-
Bug
-
Resolution: Fixed
-
Medium
-
Severity 3 - Minor
-
Description
Issue Summary
The get content properties API] returns inconsistent results. For further context, see https://community.developer.atlassian.com/t/rest-api-changes-for-content-properties/39894.
Steps to Reproduce
- Log into a Confluence tenant and visit any page.
- From the URL, extract the content ID.
- Visit [tenant-base]/wiki/rest/api/content/{id}/property and observe the response JSON.
- Visit [tenant-base]/wiki/rest/api/content/{id}/property?expand=version and observe the response JSON.
- Visit [tenant-base]/wiki/rest/api/content/{id}/property?expand=content and observe the response JSON.
- Wait 10 minutes.
- Visit [tenant-base]/wiki/rest/api/content/{id}/property?expand=content and observe the response JSON.
- Visit [tenant-base]/wiki/rest/api/content/{id}/property?expand=version and observe the response JSON.
- Visit [tenant-base]/wiki/rest/api/content/{id}/property and observe the response JSON.
Expected Results
All responses are in accordance with the API documentation].
Actual Results
- The responses for steps 3, 4 and 5 are identical. They all include expanded version information, even though this should not be provided for 5 where expand=content.
- The response for step 7 is correct (includes expanded content).
- The response for step 8 is an internal error (500 status code).
- The response for step 9 is an internal error (500 status code).
Workaround
"Get content properties" API can be used instead of "Get content property"