[Geoserver-devel] [JIRA] (GEOS-7375) Pulishing styles with GeoServer Rest API strips out CDATA[ ] (notice the white space in CDATA[])

Justin Lewis created an issue

GeoServer / BugGEOS-7375

Pulishing styles with GeoServer Rest API strips out CDATA[ ] (notice the white space in CDATA[])

Issue Type:

BugBug

Affects Versions:

2.5

Assignee:

Unassigned

Components:

REST, WMS

Created:

13/Jan/16 8:56 PM

Environment:

Ubuntu Linux 15.04, Geoserver 2.5, Geoserver Manager 1.5.3

Labels:

SLD geoserver

Priority:

MediumMedium

Reporter:

Justin Lewis

We use the GeoServer Rest API to publish styles. A style can have a label with two properties concatenated together and separated by a space. In the SLD we are submitting:

<sld:Label>
<ogc:Function name=”Concatenate”>
<ogc:PropertyName>property_1</ogc:PropertyName>
<ogc:Literal><![CDATA]></ogc:Literal>
<ogc:PropertyName>property_2</ogc:PropertyName>
</ogc:Function>
</sld:Label>

However, the end label result is the two properties are concatenated together without the space. It looks like the Rest API is stripping out <![CDATA]>, so the SLD that is actually on the server is defined as:

<sld:Label>
<ogc:Function name=”Concatenate”>
<ogc:PropertyName>property_1</ogc:PropertyName>
<ogc:Literal> </ogc:Literal>
<ogc:PropertyName>property_2</ogc:PropertyName>
</ogc:Function>
</sld:Label>

Thus, when the layer is rendered the empty <ogc:Literal> tag results in no space being concatenated.

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v7.1.0-OD-04-012#71001-sha1:dd0493d)

Atlassian logo