You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Christian Amend (JIRA)" <ji...@apache.org> on 2016/07/28 13:07:20 UTC

[jira] [Updated] (OLINGO-964) Cast type (typeFilterOnCollection) not taken into account while expanding a collection

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

Christian Amend updated OLINGO-964:
-----------------------------------
    Affects Version/s:     (was: (Java) V4 4.3.0)

> Cast type (typeFilterOnCollection) not taken into account while expanding a collection
> --------------------------------------------------------------------------------------
>
>                 Key: OLINGO-964
>                 URL: https://issues.apache.org/jira/browse/OLINGO-964
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata4-server
>    Affects Versions: (Java) V4 4.2.0
>            Reporter: Jacek MiƂaczewski
>            Assignee: Christian Amend
>            Priority: Critical
>             Fix For: (Java) V4 4.3.0
>
>         Attachments: 0001-fix-proposal-for-cast-type-not-taken-into-account-wh.patch
>
>
> When user want to expand collection of entities (e.g. 'Products') with casting type of this collection to some subtype (''FeaturedProduct) and use property from this subtype as navigation property to be expanded ('Advertisement'), error occurs because of not taking into account this subtype in ExpandParser.java code but use only superType instead.
> Example url:
> http://.../OData.svc/Categories(1)?$expand=Products/ODataDemo.FeaturedProduct($expand=Advertisement)
> I attach a patch with proposal fix to illustrate what is going on and how it should work in my opinion.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)