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

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

    XMLWordPrintable

Details

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              2f0471d2a1a4 Suat Kandiş
              Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: