[Geoserver-devel] [JIRA] (GEOS-8295) Hebrew datastore/featuretype name not displayed correctly REST API

Anton Bakker created an issue

GeoServer / BugGEOS-8295

Hebrew datastore/featuretype name not displayed correctly REST API

Issue Type:

BugBug

Affects Versions:

2.10.1

Assignee:

Unassigned

Attachments:

layer_success.png

Components:

REST

Created:

21/Sep/17 10:12 AM

Environment:

Windows 10 64 bits, running the platform independent binary

Priority:

MediumMedium

Reporter:

Anton Bakker

Trying to upload a layer through REST API with Hebrew layer name (דרכים), using the following two requests:

HTTP request 1:

{{PUT http://daneel:8080/geoserver/rest/workspaces/cite/datastores/%D7%93%D7%A8%D7%9B%D7%99%D7%9D/file.shp?update=overwrite&charset=UTF-8 HTTP/1.1
User-Agent: Mozilla/5.0 (Windows NT x.y; rv:10.0) Gecko/20100101 Firefox/10.0
Content-Type: application/zip
Host: daneel:8080
Cookie: JSESSIONID=7xplh4juloqyzpfome7rfqmw
Content-Length: 3886297
Expect: 100-continue}}

HTTP request 2:
{{PUT http://daneel:8080/geoserver/rest/workspaces/cite/datastores/%D7%93%D7%A8%D7%9B%D7%99%D7%9D/featuretypes/%D7%93%D7%A8%D7%9B%D7%99%D7%9D.xml HTTP/1.1
User-Agent: Mozilla/5.0 (Windows NT x.y; rv:10.0) Gecko/20100101 Firefox/10.0
Content-Type: text/xml
Host: daneel:8080
Cookie: JSESSIONID=7xplh4juloqyzpfome7rfqmw
Content-Length: 405
Expect: 100-continue

RESPONSE:
<featureType><name>דרכים</name>
<title>דרכים</title>
<abstract>world borders</abstract>
<srs>EPSG:4326</srs>
<nativeBoundingBox>
<minx>-180.18</minx>
<maxx>180.18</maxx>
<miny>-90.18</miny>
<maxy>83.8035960000001</maxy>
</nativeBoundingBox>
<nativeCRS class=“projected”>EPSG:4326</nativeCRS>
<projectionPolicy>FORCE_DECLARED</projectionPolicy>
<enabled>True</enabled>}}

Layer creation works as expected, see the attached image. In the web ui the layer and the layer name is displayed correctly. In the REST API the layer/feature type name is not displayed correctly, see the following two HTTP requests to the REST API:

HTTP request 1:

{{GET http://daneel:8080/geoserver/rest/workspaces/cite/datastores/%D7%93%D7%A8%D7%9B%D7%99%D7%9D/featuretypes.xml

RESPONSE:
<featureTypes>
<featureType>
<name>???</name>
<atom:link rel=“alternate” href=“http://daneel:8080/geoserver/rest/workspaces/cite/datastores/דרכים/featuretypes/דרכים.xml” type=“application/xml”/>
</featureType>
</featureTypes>}}

HTTP request 2:

{{GET http://daneel:8080/geoserver/rest/workspaces/cite/datastores.xml

RESPONSE:
<dataStores>
<dataStore>
<name>cities_europe</name>
<atom:link rel=“alternate” href=“http://daneel:8080/geoserver/rest/workspaces/cite/datastores/cities_europe.xml” type=“application/xml”/>
</dataStore>
<dataStore>
<name>???</name>
<atom:link rel=“alternate” href=“http://daneel:8080/geoserver/rest/workspaces/cite/datastores/דרכים.xml” type=“application/xml”/>
</dataStore>
</dataStores>}}

Add Comment

Add Comment

Get JIRA notifications on your phone! Download the JIRA Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1000.1299.0#100060-sha1:8cb2c24)

Atlassian logo