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

REST API limits number of results to 10

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • None
    • 7.4.2
    • REST
    • None
    • XWiki 7.4.2, Debian 8, Postgresql 9.5, Tomcat 8, Openjdk 8
    • Unknown
    • N/A
    • N/A

    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

            surli Simon Urli
            marksack marksack
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: