Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-78159

Get spaces or get space by Id returns an out of standard value

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    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

      1. Create a new space
      2. Go to the homepage and delete it
      3. Make the following requests:
        1. https://<domain-instance>/wiki/api/v2/spaces
        2. https://<domain-instance>/wiki/api/v2/spaces/<spaceId>
      4. 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

          Activity

            People

              Unassigned Unassigned
              412df9a4736e Alisson Dalmago
              Votes:
              24 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: