olingo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ramya (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OLINGO-1234) OData V2.0: Batch response does not show the umlaut characters correctly
Date Fri, 16 Feb 2018 04:51:00 GMT

    [ 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)

Mime
View raw message