|
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
|