You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Ramya (JIRA)" <ji...@apache.org> on 2018/02/16 04:51:00 UTC
[jira] [Commented] (OLINGO-1234) OData V2.0: Batch response does
not show the umlaut characters correctly
[ https://issues.apache.org/jira/browse/OLINGO-1234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16366616#comment-16366616 ]
Ramya commented on OLINGO-1234:
-------------------------------
This is fixed as part of the commit https://git-wip-us.apache.org/repos/asf?p=olingo-odata2.git;a=commit;h=f71f456e44d7c2e045e2c1ad303c9a8666c5a78e
> OData V2.0: Batch response does not show the umlaut characters correctly
> ------------------------------------------------------------------------
>
> Key: OLINGO-1234
> URL: https://issues.apache.org/jira/browse/OLINGO-1234
> Project: Olingo
> Issue Type: Bug
> Components: odata2-core
> Affects Versions: V2 2.0.6
> Reporter: Ramya
> Priority: Major
>
> When the batch response part is created as below
> List<BatchResponsePart> parts = new ArrayList<BatchResponsePart>();
> String headerValue = "<notification xmlns:ns=\"http://namespace\">"
> + "<code>TEST_MSG/004</code><message>Team ID 'XXX_E'äöü Ö is not in the defined range."
> + "</message><target>Team_Identifier</target><severity>error</severity><details><detail>"
> + "<code>TEST_MSG/010</code><message>"
> + "This is a message text of a business exception raised by the provider.</message><target>"
> + "</target><severity>warning</severity></detail></details></notification>";
> ODataResponse response = ODataResponse.entity("Walter Winter")
> .status(HttpStatusCodes.OK)
> .header("message", headerValue)
> .contentHeader("application/xml")
> .build();
> List<ODataResponse> responses = new ArrayList<ODataResponse>(1);
> responses.add(response);
> parts.add(BatchResponsePart.responses(responses).changeSet(false).build());
> BatchResponseWriter writer = new BatchResponseWriter();
> ODataResponse batchResponse = writer.writeResponse(parts);
> The response batch payload shows the umlaut characters 'äöü Ö incorrectly.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)