geoserver / geoserver-cloud

Cloud Native GeoServer is GeoServer ready to use in the cloud through dockerized microservices.

Home Page:http://geoserver.org/geoserver-cloud

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

style REST API does not work with PUT method

AlexGacon opened this issue · comments

When I try to update the style definition with a PUT on the REST API, I have an http error 406 and a message "No such style handler: format = application/vnd.geoserver.geocss+css" in the REST microserve log.

I have the same result for all the formats.

Could be related with:

PutIgnoringExtensionContentNegotiationStrategy stylePutContentNegotiationStrategy() {
?

Removing this method allows at last to send PUT requests to update SLD based style.

#268 should solve the issue for SLD files but the other langauges are still not supported.