Riccardo Mariani created OLINGO-758:
---------------------------------------
Summary: 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)