When I try to list all pages in a space using the REST API, I send HTTP GET to: "http://localhost:8090/rest/api/content?limit=1000'". I get back 100 entries and a "next" link to the next 100 entries.
      Following the links until there is no "next" in the result, Confluence returns only 300 entries from a space which contains 342 pages.

      Using the JSON-RPC API returns all pages without a problem.

      When I tried to repeat the queries "manually" using execution of multiple "curl" calls I got back more entries but many were duplicates.

      I think this likely has something to do with restrictions and the PaginationService

            [CONFSERVER-35755] REST API "list pages" does not return all pages

            Just to confirm - I now tested also with a limit of 99 and got back 297 pages (99 x 3).

            Amos Shapira added a comment - Just to confirm - I now tested also with a limit of 99 and got back 297 pages (99 x 3).

            No I hadn't, I just tested with a limit of 99 and it gets all pages in the space I tested on the latest version of confluence, thanks for the info Amos, this will help when fixing this issue.

            Steve Lancashire (Inactive) added a comment - No I hadn't, I just tested with a limit of 99 and it gets all pages in the space I tested on the latest version of confluence, thanks for the info Amos, this will help when fixing this issue.

            Following your comment about not using the maximum limit (100 in my case), I tested with smaller limits - 90, 20 and 10. The results always miss the last bit (there are 342 pages in the test space) - i.e. with "90" I get up to 270 pages, with 10 and 20 I get 340.

            Have you tested with a limit number which doesn't divide the total number of pages in the space?

            Amos Shapira added a comment - Following your comment about not using the maximum limit (100 in my case), I tested with smaller limits - 90, 20 and 10. The results always miss the last bit (there are 342 pages in the test space) - i.e. with "90" I get up to 270 pages, with 10 and 20 I get 340. Have you tested with a limit number which doesn't divide the total number of pages in the space?

            Not good, I can reproduce this on PUG using the CP space, but only when using the maximum limit, limits less than the maximum limit do not elicit this behaviour

            I haven't investigated the duplicates reported from using curl. This should be fixed on stable.

            Steve Lancashire (Inactive) added a comment - Not good, I can reproduce this on PUG using the CP space, but only when using the maximum limit, limits less than the maximum limit do not elicit this behaviour I haven't investigated the duplicates reported from using curl. This should be fixed on stable.

              pserbin Platon (Inactive)
              amos.shapira Amos Shapira
              Affected customers:
              0 This affects my team
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: