Details
-
Suggestion
-
Resolution: Unresolved
Description
Issue Summary
The Confluence REST API v2 endpoints getSpaces and getSpaceById return a homepageId: '0' value instead of a null value when the homepage does not exist.
Steps to Reproduce
- Create a new space
- Go to the homepage and delete it
- Make the following requests:
- https://<domain-instance>/wiki/api/v2/spaces
- https://<domain-instance>/wiki/api/v2/spaces/<spaceId>
- Both requests return the homepageId as '0' string value
{ id: 'xxx', key: 'TEST', name: 'TEST SPACE', type: 'global', status: 'current', authorId: 'xxx', createdAt: 'xxx', homepageId: '0', ... }
Expected Results
homepageId: null
Actual Results
homepageId: '0' as string
Workaround
Currently there is no known workaround for this behavior. A workaround will be added here when available
Attachments
Issue Links
- mentioned in
-
Page Loading...