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

            Niraj Bhawnani made changes -
            Labels Original: sec-escape security-escape New: sec-escape
            Niraj Bhawnani made changes -
            Labels Original: security-escape New: sec-escape security-escape
            James Ponting made changes -
            Link Original: This issue is related to CONFSERVER-95272 [ CONFSERVER-95272 ]
            James Ponting made changes -
            Link New: This issue duplicates CONFSERVER-95272 [ CONFSERVER-95272 ]
            James Ponting made changes -
            QA Demo Status Original: Not Done [ 14330 ] New: Not Needed [ 14332 ]
            QA Kickoff Status Original: Not Done [ 14234 ] New: Not Needed [ 14236 ]
            Resolution New: Duplicate [ 3 ]
            Status Original: Needs Triage [ 10030 ] New: Closed [ 6 ]
            Edward made changes -
            Labels New: security-escape
            SET Analytics Bot made changes -
            Support reference count New: 1
            Suat Kandiş made changes -
            Link New: This issue is related to CONFSERVER-95272 [ CONFSERVER-95272 ]
            Suat Kandiş created issue -

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

                Created:
                Updated:
                Resolved: