[
https://issues.apache.org/jira/browse/OLINGO-1100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16059162#comment-16059162
]
Archana Rai commented on OLINGO-1100:
-------------------------------------
This issue has been fixed:
https://git-wip-us.apache.org/repos/asf?p=olingo-odata4.git;a=commit;h=8130360d7cfa773e4720afb9aa9f732f19e10348
Regards,
Archana
> 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)