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

XMLWordPrintable

    • 1
    • Severity 3 - Minor

      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

            Assignee:
            Unassigned
            Reporter:
            Suat Kandiş (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: