Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
(Java) V4 4.2.0
-
None
-
Patch
Description
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.