Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-5329

REST endpoint /rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/changes returns nextPageStart values beyond hard cap

    XMLWordPrintable

Details

    Description

      For instance:

      curl -H "Content-Type:application/json" -H "Accept:application/json" --user admin:admin -X GET 'http://localhost:7990/projects/TEST/repos/repotest3/changes?since=e508f7a&until=4d15880&start=0&limit=100000'
      

      This returns to me:

      {"self":[{"href":"http://localhost:7990/projects/TEST/repos/repotest3/commits/4d15880#File817.txt"}]}}],"size":1000,"isLastPage":false,"start":0,"limit":100000,"nextPageStart":100000}
      

      Notice that this parameter should be true: "isLastPage":false because the limit of 1000 was reached by currently respecting page.max.changes (this limit might change depending on the implementation of https://jira.atlassian.com/browse/STASH-5328)

      "nextPageStart" is incorrect in this case - it should be null.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tbomfim ThiagoBomfim (Inactive)
              Votes:
              3 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: