olingo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ramya (JIRA)" <j...@apache.org>
Subject [jira] [Created] (OLINGO-1248) OData V4: Navigation links are shown when an entity is queried
Date Mon, 19 Mar 2018 11:30:00 GMT
Ramya created OLINGO-1248:
-----------------------------

             Summary: OData V4: Navigation links are shown when an entity is queried
                 Key: OLINGO-1248
                 URL: https://issues.apache.org/jira/browse/OLINGO-1248
             Project: Olingo
          Issue Type: Bug
            Reporter: Ramya


When metadata is of the form
<EntityType Name="Organization">
                …
<Property Name="AdministrativeInformation" Type="com.AdministrativeInformation"/>
                …
</EntityType>
…
<ComplexType Name="AdministrativeInformation">
<Property Name="Created" Type="com.ChangeInformation"/>
<Property Name="Updated" Type="com.ChangeInformation"/>
</ComplexType>
<ComplexType Name="ChangeInformation">
<Property Name="At" Type="Edm.DateTimeOffset" Precision="9"/>
<Property Name="By" Type="Edm.String" MaxLength="255"/>
<NavigationProperty Name="User" Type="com.Person"/>
</ComplexType>

And the url fired is Organizations('3')/AdministrativeInformation/Created?$format=application/json;odata.metadata=full,
the navigation link created within the complex type Created is shown correctly
"User@odata.navigationLink": "Organizations('3')/AdministrativeInformation/Created/User"

However, when the url fired is /Organizations('3')?$format=application/json;odata.metadata=full,
the navigation link is not shown.

This is because the writeComplex method writes the values within the complex property but
does not add the navigation links



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message