-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Medium
-
Component/s: FC - Ecosystem - API Framework
-
Severity 3 - Minor
Issue Summary
The Confluence REST API endpoint V2 "Get attachment by ID" does not return the MediaType information, as it should, according to the documentation.
Steps to Reproduce
Expected Results
The MediaType information is returned for both calls.
Actual Results
The mediaType information is not returned when calling the v2 endpoint:
- V1 (The Confluence Cloud REST API)
{ [...] "metadata": { "mediaType": "image/jpeg" }, "extensions": { "mediaType": "image/jpeg", "fileSize": 11019764, "comment": "", "mediaTypeDescription": "JPEG Image", "fileId": "0265f0bb-f800-4c81-82e0-45459e07c732", "collectionName": "contentId-29458434" [...] }
- V2 (The Confluence Cloud REST API )
{ [...] "title": "DSC_0292.JPG", "fileSize": null, "status": "current", "fileId": null, "mediaType": null, // <<< wrong! [...] }
Workaround
Continue to use the V1 endpoint for the time being. However, this is not a valid workaround for long since these endpoints will soon no longer be accessible but this issue should be reviewed before the deprecation rules out.
- is depended on by
-
ECOHELP-35276 Loading...