[
https://issues.apache.org/jira/browse/OLINGO-1246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16407441#comment-16407441
]
Ramya commented on OLINGO-1246:
-------------------------------
Another commit as part of this issue
https://git-wip-us.apache.org/repos/asf?p=olingo-odata4.git;a=commit;h=d9aff6300f61750d7f1a20d8ae58c322d8cde4e3
The key properties are included as part of the context url and also the
response payload even if the select clause does not include the key properties
> OData V4: Fixes for Context url when the URL has select clause and expand
> clause having select
> ----------------------------------------------------------------------------------------------
>
> Key: OLINGO-1246
> URL: https://issues.apache.org/jira/browse/OLINGO-1246
> Project: Olingo
> Issue Type: Bug
> Affects Versions: (Java) V4 4.4.0
> Reporter: Ramya
> Priority: Major
>
> If url is of the form
> EntitySetA?$select=NavPropertyToMany&$expand=NavPropertyToMany
> then context url should be of the form
> #EntitySetA(NavPropertyToMany,NavPropertyToMany())
> If url is of the form
> EntitySetA?$select=NavPropertyToMany&$expand=NavPropertyToMany($select=Property)
> then the context url should be of the form
> #EntitySetA(NavPropertyToMany,NavPropertyToMany(Property))
> If url is of the form
> EntitySetA?$expand=NavPropertyToOne1($expand=NavPropertyToOne2), then the
> context url should be
> #EntitySetA(NavPropertyToOne1(NavPropertyToOne2()))
> If url is of the form
> EntitySetA?$expand=NavPropertyToOne,NavPropertyToMany($select=Property), then
> context url should be
> #EntitySetA(NavPropertyToOne(),NavPropertyToMany(Property))
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)