chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Streit <mcs...@gmail.com>
Subject Re: getTotalNumItems() returning wrong value
Date Tue, 18 Mar 2014 16:42:18 GMT
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 <
sebastian.danninger@googlemail.com> 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
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message