Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-4032 Olingo V4
  3. TEIID-4059

OData - $ref after $expand does not work

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Major Major
    • 9.0, 8.12.5
    • None
    • OData

      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

              rhn-engineering-rareddy Ramesh Reddy
              jdurani Juraj DurĂ¡ni (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: