olingo-dev mailing list archives

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

     [ https://issues.apache.org/jira/browse/OLINGO-1248?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ramya updated OLINGO-1248:
--------------------------
    Summary: OData V4: Navigation links are not shown when an entity is queried with metadata
full  (was: OData V4: Navigation links are shown when an entity is queried)

> OData V4: Navigation links are not shown when an entity is queried with metadata full
> -------------------------------------------------------------------------------------
>
>                 Key: OLINGO-1248
>                 URL: https://issues.apache.org/jira/browse/OLINGO-1248
>             Project: Olingo
>          Issue Type: Bug
>            Reporter: Ramya
>            Priority: Major
>
> 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