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

Ramya resolved OLINGO-870.
--------------------------
    Resolution: Fixed

> ContextURL: Incorrect parsing of containment navigation
> -------------------------------------------------------
>
>                 Key: OLINGO-870
>                 URL: https://issues.apache.org/jira/browse/OLINGO-870
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata4-client, odata4-commons
>    Affects Versions: (Java) V4 4.1.0
>            Reporter: Frederik Zimmer
>
> We have the context URL $metadata#A(1)/b(1)/c(1)/d where A is an entity set 
> and b, c and d are containment navigation properties.
> Parsing this with org.apache.olingo.commons.api.data.ContextURL results in:
> entitySetOrSingletonOrType = A/b/c
> navOrPropertyPath = c(1)
> The result should be (at least what is expected but which might not be 
> correct, see below*):
> entitySetOrSingletonOrType  = A/b/c
> navOrPropertyPath = d
> This results in ODataBinderImpl finding the incorrect type for the returned 
> entities.
> *Depending on your point of view
> entitySetOrSingletonOrType =  A
> navOrPropertyPath = b(1)/c(1)/d
> or
> entitySetOrSingletonOrType =  A(1)/b(1)/c(1)/d
> navOrPropertyPath = 
> might be what you would expect as a result of the parsing but the current 
> code wouldn't be able to handle such results.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to