olingo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ruslan Didyk (JIRA)" <j...@apache.org>
Subject [jira] [Created] (OLINGO-1100) Get related binding target returns wrong entity set
Date Tue, 28 Mar 2017 13:29:41 GMT
Ruslan Didyk created OLINGO-1100:

             Summary: 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:

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

View raw message