Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-13434

REST API limits number of results to 10

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 7.4.2
    • Fix Version/s: None
    • Component/s: REST
    • Labels:
      None
    • Environment:
      XWiki 7.4.2, Debian 8, Postgresql 9.5, Tomcat 8, Openjdk 8
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      I'm using the REST API to get the wiki users as per the example in
      http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI
      i.e.

      http://<server>/xwiki/rest/wikis/query?q=object:XWiki.XWikiUsers

      This only returns 10 of the users in the wiki database. If I make the call using curl, it returns 10 non-hidden users. If I make the call from a browser, it returns almost the same set of 10 users except that 2 of them are replaced with hidden users.

      A workaround is to use the start and number parameters to the query and then repeat the call incrementing the start parameter until nothing is returned.

      See also
      http://xwiki.475771.n2.nabble.com/REST-query-returns-subset-of-results-td7599544.html

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              marksack marksack
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Date of First Response: