[Geoserver-devel] [JIRA] (GEOS-8874) problem setting legend for existing style via rest

Tobias created an issue

GeoServer / BugGEOS-8874

problem setting legend for existing style via rest

Issue Type:

BugBug

Assignee:

Unassigned

Components:

REST

Created:

06/Aug/18 3:52 PM

Environment:

geoserver 2.13.2

Priority:

MediumMedium

Reporter:

Tobias

I have an existing style and want to attach an external legend. So I do a PUT using a xml like:

<style>
<name>roads_style</name>
<languageVersion>
<version>1.0.0</version>
</languageVersion>
<filename>roads.sld</filename>
<legend>
<width>32</width>
<height>32</height>
<format>image/png; charset=UTF-8</format>
<onlineResource>legend.png</onlineResource>
</legend>
</style>

Doing this removes the style definition (sld, css) itself und creates a new empty style file.

Is this by design or a bug?

How would be the correct REST call to do this?

Regards

Tobias

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 (v1001.0.0-SNAPSHOT#100090-sha1:718d59f)

Atlassian logo