You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Peter Rilling (JIRA)" <ji...@apache.org> on 2016/05/09 18:11:13 UTC

[jira] [Created] (OLINGO-949) __count is incorrect when page size is set with setPageSize.

Peter Rilling created OLINGO-949:
------------------------------------

             Summary: __count is incorrect when page size is set with setPageSize.
                 Key: OLINGO-949
                 URL: https://issues.apache.org/jira/browse/OLINGO-949
             Project: Olingo
          Issue Type: Bug
          Components: odata2-jpa
    Affects Versions: V2 2.0.6
            Reporter: Peter Rilling


Is this a bug?

When including $inlinecount, and I set oDataJPAContext.setPageSize, the value of __count is the value of setPageSize, not the total number of elements across all pages, as I would expect.

*Not Expected*
For my table, I have 200+, but I set setPageSize == 50.  For this, the following URL will have __count == 50.

http://localhost:8080/odata.svc/v1/Countries?$format=json&$inlinecount=allpages

*Expected*
I compared this with the following URL, which only displays 20 items per page, but __count == 91.  There are 91 items across all pages.

http://services.odata.org/V2/Northwind/Northwind.svc/Customers?$format=json&$inlinecount=allpages




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)