You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Frederik Zimmer (JIRA)" <ji...@apache.org> on 2016/02/02 00:23:39 UTC

[jira] [Created] (OLINGO-870) ContextURL: Incorrect parsing of containment navigation

Frederik Zimmer created OLINGO-870:
--------------------------------------

             Summary: 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.3.4#6332)