[Geoserver-devel] [jira] (GEOS-6568) Uploading SLD's with version 1.1.0 doesn't work through REST interface

Wouter Schaubroeck created an issue

GeoServer / BugGEOS-6568

Uploading SLD’s with version 1.1.0 doesn’t work through REST interface

Issue Type:

BugBug

Affects Versions:

2.5.1

Assignee:

Andrea Aime

Attachments:

sld110.sld

Components:

REST

Created:

10/Jul/14 6:03 AM

Priority:

MajorMajor

Reporter:

Wouter Schaubroeck

Hi,

Is it possible that registering a SLD with version 1.1.0 is not possible through the REST interface.

It’s reproducable with curl:

First try this:
curl -v -u admin:geoserver -XPOST -H “Content-type: text/xml” -d “<style><name>test110_style</name><filename>sld110.sld</filename><sldVersion><version>1.1.0</version></sldVersion></style>” http://localhost:8080/geoserver/rest/styles

-> HTTP 200 Ok

Then uploading the sld:
curl -v -u admin:geoserver -XPUT -H “Content-type: application/vnd.ogc.sld+xml” -d @sld110.sld http://localhost:8080/geoserver/rest/styles/test110_style

-> Also an HTTP/1.1 200 OK

Then, when trying to retrieve the sld:
curl -v -u admin:geoserver -XGET http://localhost:8080/geoserver/rest/styles/test110_style.sld

The answer is:
< HTTP/1.1 500 Internal Server Error

The same procedure with a SLD version 1.0.0 works, and through the GUI the 1.1.0 SLD also works.

Thanks,

Wouter

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c)

Atlassian logo