I am facing a new issue since I upgraded my geoserver to v2.12.0.
I am using the REST API /workspaces/<ws>/styles/<s> to edit styles, and my
content type header is set to 'application/vnd.ogc.sld+xml;charset=UTF-8'.
This used to work in v2.11.x. But now this error is raised :
org.geoserver.rest.RestException 400 BAD_REQUEST: Unknown style format
'application/vnd.ogc.sld+xml;charset=UTF-8'
at
org.geoserver.rest.catalog.StyleController.stylePut(StyleController.java:446)
I need to set the charset to UTF-8 because I have special characters in my
sld file like 'é' or 'è', which are not correctly handled without setting
the charset parameter in the content-type header.
Is there anything planned in order to fix this issue ?
I am facing a new issue since I upgraded my geoserver to v2.12.0.
I am using the REST API /workspaces//styles/ to edit styles, and my
content type header is set to ‘application/vnd.ogc.sld+xml;charset=UTF-8’.
This used to work in v2.11.x. But now this error is raised :
org.geoserver.rest.RestException 400 BAD_REQUEST: Unknown style format
‘application/vnd.ogc.sld+xml;charset=UTF-8’
at
org.geoserver.rest.catalog.StyleController.stylePut(StyleController.java:446)
I need to set the charset to UTF-8 because I have special characters in my
sld file like ‘é’ or ‘è’, which are not correctly handled without setting
the charset parameter in the content-type header.
Is there anything planned in order to fix this issue ?
No, I am on linux. You are right it seems to work without the charset when I
send the request directly via CURL. So I think the problem comes from my
java server who sends the request, I'll try the solutions in the discussion.