REST API weirdness - result set changes

Hi all

I need to get all pages with a specific tag as an XML, so I went for this REST-call:

http://<host>/rest/wikis/xwiki/tags/myTag

This takes a while, a bit more than a minute, but it seems to work fine.

I noticed, however, that there’s a different number of entries returned each time. Expect the XML being prettified inside 01_f.xml to 05_f.xml:

grep -c '<pageSummary' *f.xml
01_f.xml:6039
02_f.xml:6076
03_f.xml:6073
04_f.xml:6066
05_f.xml:6012

There’s no error at all, I always receive a 200 status code.

Paging is not a solution unfortunately, because this would need quite some coding effort on my side.

Edit: Version 12.10.5.

Any idea?

Thanks in advance

André

P.S.

What I tried as an alternative is a custom REST page. This one, however, doesn’t return everything I need (basically what’s in the page summary). As well, I didn’t figure out yet how to use multiple attributes in the select statement:

{{velocity}}
#if ("$!request.space" != '')
  #set ($discard = $response.setContentType('text/xml'))
  <pages>
member of tag.tags"))
  #set ($query = $services.query.xwql("select doc.title from Document doc, doc.object(XWiki.TagClass) as tag where 'myTag' member of tag.tags"))

  #foreach ($item in $query.execute())
    #set ($eitem = $escapetool.xml($item))
    <page>$eitem</page>
  #end
  </pages>
#end
{{/velocity}}