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

XMLWordPrintable

    • 1

      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

            Assignee:
            Piyush Gayee
            Reporter:
            Alisson Dalmago
            Votes:
            25 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: