You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Barrett Oglesby (Jira)" <ji...@apache.org> on 2021/05/05 18:48:00 UTC
[jira] [Resolved] (GEODE-9104) REST query output displays non-ASCII
characters using escapes
[ https://issues.apache.org/jira/browse/GEODE-9104?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Barrett Oglesby resolved GEODE-9104.
------------------------------------
Fix Version/s: 1.15.0
Resolution: Fixed
> REST query output displays non-ASCII characters using escapes
> -------------------------------------------------------------
>
> Key: GEODE-9104
> URL: https://issues.apache.org/jira/browse/GEODE-9104
> Project: Geode
> Issue Type: Bug
> Components: rest (dev)
> Reporter: Barrett Oglesby
> Assignee: Barrett Oglesby
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.15.0
>
>
> For example, if JSON containing Chinese characters is put:
> {noformat}
> curl -X PUT -H "Content-Type: application/json" localhost:8081/geode/v1/customers/1 -d '{"id": "1", "firstName": "名", "lastName": "姓"}'
> {noformat}
> The results of getting the entry are correct:
> {noformat}
> curl localhost:8081/geode/v1/customers/1
> {
> "id" : "1",
> "firstName" : "名",
> "lastName" : "姓"
> }
> {noformat}
> The results of querying the entry show the field values escaped:
> {noformat}
> curl -G http://localhost:8081/gemfire-api/v1/queries/adhoc --data-urlencode "q=SELECT * FROM /customers where id='1'"
> [ {
> "id" : "1",
> "firstName" : "\u540D",
> "lastName" : "\u59D3"
> } ]
> {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)