[ 
https://issues.apache.org/jira/browse/OLINGO-758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14693523#comment-14693523
 ] 

Ramesh Reddy commented on OLINGO-758:
-------------------------------------

I believe this can be relative or absolute, specification did not seem call it 
explicitly

> Wrong @odata.context returned by DefaultProcessor when requesting the service 
> document
> --------------------------------------------------------------------------------------
>
>                 Key: OLINGO-758
>                 URL: https://issues.apache.org/jira/browse/OLINGO-758
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata4-server
>    Affects Versions: (Java) V4 4.0.0-beta-03
>            Reporter: Riccardo Mariani
>
> Requesting the service document http://host/service, the DefaultProcessor 
> return this odata context in the response: 
> @odata.context: "$metadata"
> I think it should be 
> @odata.context: "http://host/service/$metadata";
> In the DefaultProcessor the response is set as:
> response.setContent(serializer.serviceDocument(serviceMetadata, 
> null).getContent());
> I think the response should be set as:
> response.setContent(serializer.serviceDocument(serviceMetadata, 
> request.getRawBaseUri()).getContent()); 



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

Reply via email to