Bug 1316501 - OData - $ref after $expand does not work
Summary: OData - $ref after $expand does not work
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Data Virtualization 6
Classification: JBoss
Component: Teiid
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ER2
: 6.3.0
Assignee: Van Halbert
QA Contact: Juraj Duráni
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-10 11:18 UTC by Juraj Duráni
Modified: 2016-08-24 11:38 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-08-24 11:38:20 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker TEIID-4059 0 Major Resolved OData - $ref after $expand does not work 2016-05-27 11:18:08 UTC

Description Juraj Duráni 2016-03-10 11:18:12 UTC
Description of problem:
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=Orders_FK0/$ref
*Result:* 
...
<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>
...
*Expected result:* 
<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)"/>
...

See http://docs.oasis-open.org/odata/odata/v4.0/errata02/os/complete/part1-protocol/odata-v4.0-errata02-os-part1-protocol-complete.html#_Toc406398298

Comment 1 JBoss JIRA Server 2016-03-23 13:15:17 UTC
Ramesh Reddy <rareddy> updated the status of jira TEIID-4059 to Coding In Progress

Comment 2 JBoss JIRA Server 2016-03-29 14:06:14 UTC
Ramesh Reddy <rareddy> updated the status of jira TEIID-4059 to Resolved


Note You need to log in before you can comment on or make changes to this bug.