We ran into a similar issue with the method: getTotalNumItems() -  (using
Alfresco 4.1.7) and I believe this has been reported to them already.  You
may wish to check with Alfresco.

Mark Streit

On Tue, Mar 18, 2014 at 12:37 PM, Sebastian Danninger <
[email protected]> wrote:

> Dear all,
>
> performing the following Code:
>
> OperationContext oc = s.createOperationContext();
> oc.setMaxItemsPerPage(size);
> ItemIterable<QueryResult> results = s.query("SELECT cmis:objectId FROM
> cmis:folder WHERE cmis:createdBy="admin" ORDER BY cmis:createdBy ASC",
> false, oc);
> System.out.println("Total: " + results.getTotalNumItems());
>
> this always prints the same value as size (pagesize - 5) but should
> actually give the number of total query results (300+).
>
> Is this a general bug or somehow related to my repository (Alfresco)
>
> thanks
>
> Sebastian
>

Reply via email to