You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Michael Bolz (JIRA)" <ji...@apache.org> on 2015/07/31 07:41:04 UTC

[jira] [Created] (OLINGO-743) Incorrect @odata.context uri with Context URI Builder (Relative Path & NavigationPropertyBinding)

Michael Bolz created OLINGO-743:
-----------------------------------

             Summary: Incorrect @odata.context uri with Context URI Builder (Relative Path & NavigationPropertyBinding)
                 Key: OLINGO-743
                 URL: https://issues.apache.org/jira/browse/OLINGO-743
             Project: Olingo
          Issue Type: Bug
            Reporter: Michael Bolz
            Assignee: Michael Bolz


1. Relative Path to request URI
According to the OData specification chapter 4.3 context uri's shall be relative to the request uri. Currently the context uri is not correct for navigation properties. Below some examples with the correct context

1.1 uri:[http://localhost:8080/test-svc/odata.svc/ESAllPrim(32767)/NavPropertyETTwoPrimOne
|http://localhost:8080/test-svc/odata.svc/ESAllPrim(32767)/NavPropertyETTwoPrimOne]{color:#1f497d}è{color} "@odata.context":"$metadata#ESTwoPrim/$entity"  wrong context URI
{color:#1f497d}è{color} "@odata.context":"../$metadata#ESTwoPrim/$entity"  correct context URI

1.2 [http://localhost:8080/test-svc/odata.svc/ESAllPrim(32767)/NavPropertyETTwoPrimOne/Weiteres|http://localhost:8080/test-svc/odata.svc/ESAllPrim(32767)/NavPropertyETTwoPrimOne/Weiteres]NavProp
{color:#1f497d}è{color} "@odata.context":"../../$metadata#ESTwoPrim/$entity"  correct context URI

2. Context uri builder shall provide context uri for navigations where the target entity set /singleton is not defined via a navigation property binding:



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)