Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-95312

REST API endpoint api/space doesn't respect 'start' parameter

      Issue Summary

      Requesting /rest/api/space with ?start parameter does not have the correct behavior

      Steps to Reproduce

      1. Call the REST API: <BASE_URL>/rest/api/space?limit=1&start=xxxx
      2. Make sure that the value for the start parameter is greater than the total count in Confluence.

      Expected Results

      There is no result returned

      Actual Results

      The record for a space is returned

       curl --location '<Base URL>/rest/api/space?limit=1&start=1400' \
      --header 'Authorization: Basic xxxxxxxx' \
      --header 'Cookie: JSESSIONID=xxxxxxxx' | jq -r '.results | length'
      
      
        % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                       Dload  Upload   Total   Spent    Left  Speed
      100   604    0   604    0     0    911      0 --:--:-- --:--:-- --:--:--   911
      
      1 

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

            [CONFSERVER-95312] REST API endpoint api/space doesn't respect 'start' parameter

            There are no comments yet on this issue.

              Unassigned Unassigned
              2f0471d2a1a4 Suat Kandiş
              Affected customers:
              2 This affects my team
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: