[
https://issues.apache.org/jira/browse/OLINGO-811?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14989531#comment-14989531
]
Michael Bolz commented on OLINGO-811:
-------------------------------------
Hi [~riccardomariani],
Thanks for the suggested solution.
Based on this I created the branch
[OLINGO-811_CountForExpand|https://git1-us-west.apache.org/repos/asf?p=olingo-odata4.git;a=shortlog;h=refs/heads/OLINGO-811_CountForExpand]
and commited a first version.
I have to admit, that in this *first version* not all tests are running
(problem with XML in *client* and *fit* test).
However, the core and JSON parts as basis for a solution discussion works.
Can you please take a look into and give feedback.
Best Regards,
Michael
> Use of $count for expanded items does not work
> ----------------------------------------------
>
> Key: OLINGO-811
> URL: https://issues.apache.org/jira/browse/OLINGO-811
> Project: Olingo
> Issue Type: Bug
> Components: odata4-server
> Affects Versions: (Java) V4 4.0.0
> Reporter: Michael Bolz
> Assignee: Michael Bolz
>
> The {{$count}} query option within the {{$expand}} clause does not work
> correctly (see in
> [Specification|http://docs.oasis-open.org/odata/odata/v4.0/errata02/os/complete/part1-protocol/odata-v4.0-errata02-os-part1-protocol-complete.html#_The_$inlinecount_System]
> Example URL (for *TecSvc*):
> http://localhost:8080/odata.svc/ESAllPrim/?$expand=NavPropertyETTwoPrimMany($count=true)&$format=json&$count=true
> And example for OData-TripPin Service:
> [http://services.odata.org/V4/(S(kb3m31znaqv0xd4oqq0esxfv))/TripPinServiceRW/People?$expand=Trips($count=true)]
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)