]
RH Bugzilla Integration commented on TEIID-4059:
------------------------------------------------
Juraj Duráni <jdurani(a)redhat.com> changed the Status of [bug
OData - $ref after $expand does not work
----------------------------------------
Key: TEIID-4059
URL:
https://issues.jboss.org/browse/TEIID-4059
Project: Teiid
Issue Type: Sub-task
Components: OData
Reporter: Juraj Duráni
Assignee: Ramesh Reddy
Labels: Beta1
Fix For: 9.0, 8.12.5
If user declares $ref after $expand, OData service should return inline references to
entities instead of whole entities.
*URL:*
http://localhost:8080/odata4/olingo_basic/Source/Customers/?$expand=Order...
*Result:*
{code:xml}
...
<a:link
rel="http://docs.oasis-open.org/odata/ns/related/Orders_FK0"
title="Orders_FK0"
href="http://localhost:8080/odata4/olingo_basic/Source/Customers(1)/Orders_FK0">
<m:inline>
<a:feed>
<a:entry>
...
{code}
*Expected result:*
{code:xml}
<a:link
rel="http://docs.oasis-open.org/odata/ns/related/Orders_FK0"
title="Orders_FK0"
href="http://localhost:8080/odata4/olingo_basic/Source/Customers(1)/Orders_FK0">
<m:inline>
<a:feed>
<m:ref
id="http://localhost:8080/odata4/olingo_basic/Source/Orders(1)"/>
...
{code}
See
http://docs.oasis-open.org/odata/odata/v4.0/errata02/os/complete/part1-pr...