[
https://issues.apache.org/jira/browse/OLINGO-1100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Archana Rai resolved OLINGO-1100.
---------------------------------
Resolution: Resolved
> Get related binding target returns wrong entity set
> ---------------------------------------------------
>
> Key: OLINGO-1100
> URL: https://issues.apache.org/jira/browse/OLINGO-1100
> Project: Olingo
> Issue Type: Question
> Components: odata4-server
> Reporter: Ruslan Didyk
>
> Hi guys. Let's imagine following situation:
> We have three entity types: 'Provider', 'ProviderLicense' and
> 'ProviderPracticeLicense'. And relation between then is one 'Provider' to
> many 'ProviderLicense', and one 'ProviderLicense' to many
> 'ProviderPracticeLicense'.
> We have following GET request:
> http://host:port/OData.svc/ProviderLicense('id')/ProviderPracticeLicense
> So the problem is when we call 'getRelatedBindingTarget(String path)' (method
> is in AbstractEdmBindingTarget.class) on entity set 'ProviderLicense' with
> path 'ProvidePracticeLicense' this method sometimes return's wrong binding
> entity set. The reason of this behavior is because in line 95
> (AbstractEdmBindingTarget.class) path compares to binding target path by
> 'startsWith' instead of 'equals' method.
> So I wonder, is it a bug or this was done by some reason. Thanks.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)