[
https://issues.apache.org/jira/browse/OLINGO-758?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Bolz closed OLINGO-758.
-------------------------------
Resolution: Not A Problem
It is no a bug, at best a feature request.
[~riccardomariani]: If you want it as a feature then please open a new feature
request issue. Thanks.
> 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)