[
https://issues.apache.org/jira/browse/OLINGO-1129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hui Wang updated OLINGO-1129:
-----------------------------
Description:
Currently we need to use type casting to a derived type in $expand. The
corresponding part in the OData Protocol is as below.
http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part2-url-conventions/odata-v4.0-errata03-os-part2-url-conventions-complete.html#_Toc453752352
To reproduce:
Here is an example URL provided in the documentation that could be used for
reproducing the defect:
http://host/service/Orders?$expand=Customer/Model.VipCustomer
In the current 4.3 version, ODataJsonSerializer only deals with expand on
Customer but ignores the type filter Model.VipCustomer. It means, the response
would only show the content of super type Customer. Any custom properties in
derived type VipCustomer wouldn't be returned.
was:
Currently we need to use type casting to a derived type in $expand. The
corresponding part in the OData Protocol is as below.
http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part2-url-conventions/odata-v4.0-errata03-os-part2-url-conventions-complete.html#_Toc453752352
To reproduce:
Here is an example URL provided in the documentation that could be used for
reproducing the defect:
http://host/service/Orders?$expand=Customer/Model.VipCustomer
In the current 4.3 version, ODataJsonSerializer only deals with expand on
Customer but ignores the type filter Model.VipCustomer. It means, the response
would only show the content of super type Customer. Any custom properties in
derived type VipCustomer wouldn't been returned.
> ODataJsonSerializer Does Not Support Derived Type in $expand Option
> -------------------------------------------------------------------
>
> Key: OLINGO-1129
> URL: https://issues.apache.org/jira/browse/OLINGO-1129
> Project: Olingo
> Issue Type: New Feature
> Components: odata4-server
> Affects Versions: (Java) V4 4.3.0
> Reporter: Hui Wang
> Priority: Minor
>
> Currently we need to use type casting to a derived type in $expand. The
> corresponding part in the OData Protocol is as below.
> http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part2-url-conventions/odata-v4.0-errata03-os-part2-url-conventions-complete.html#_Toc453752352
> To reproduce:
> Here is an example URL provided in the documentation that could be used for
> reproducing the defect:
> http://host/service/Orders?$expand=Customer/Model.VipCustomer
> In the current 4.3 version, ODataJsonSerializer only deals with expand on
> Customer but ignores the type filter Model.VipCustomer. It means, the
> response would only show the content of super type Customer. Any custom
> properties in derived type VipCustomer wouldn't be returned.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)