Hi all, I am trying to publish a SLD with InlineContent (a base64 png image) by using the REST-API. The request fails with the message an HTTP 500 "Error writing style". The REST call works quite well with a "normal" SLD, such as the simple "point" example. So the problem seems to be related to the InlineContent element. When I publish the SLD with the InlineContent element via GeoServer web GUI it works without any issues and even the validator says "No validation errors.". Did anyone experience this as well and has maybe a workaround for that? Any hint very much appreciated. Here is my REST API call
curl -X POST \ 'http://localhost:8080/geoserver/rest/workspaces/test-cm/styles?name=foo' \ -H 'Authorization: Basic YWRtaW46Z2Vvc2VydmVy' \ -H 'Content-Type: application/vnd.ogc.sld+xml' \ -H 'cache-control: no-cache' \ -d '<?xml version="1.0" encoding="UTF-8"?> <StyledLayerDescriptor xmlns:xsi='\''http://www.w3.org/2001/XMLSchema-instance'\'' xmlns="http://www.opengis.net/sld" xmlns:sld="http://www.opengis.net/sld" xmlns:se="http://www.opengis.net/se" xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.1.0/StyledLayerDescriptor.xsd http://www.opengis.net/se http://schemas.opengis.net/se/1.1.0/FeatureStyle.xsd" version="1.1.0" > <UserLayer> <se:Name>sauber_stations</se:Name> <UserStyle> <se:FeatureTypeStyle> <se:Rule> <se:Name>sauber_stations_rule_1</se:Name> <se:PointSymbolizer> <se:Graphic> <se:ExternalGraphic> <se:InlineContent encoding="base64">iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAABgAAAAYADwa0LPAAABhklEQVRYw+3XMUscURAH8J854QJ2EUzSpZWENCcqGNATvC9gII3kI5jS9iy1EPEz2PgVDCQpDBgSGxtBC0vBMiGaI4ak2HfccZ7Hure7d4H9w8C8eftm/m/mveEtBQr0h5GM/E6igokwvsQRTvLcXBnvcIa/d8gZVsO3mWZoGnt4hl/4gI+4CPNPUcUiHuIcb/A1i8zM4Bq/saVVJigFaeIxtsO3V2Ft6ihhB/Nh/ASbOMVNkFNsBEKwENaU7hMoCV7jh+i8fMchvgS9aVvu5eBByoSei8q3gnHMisoyjrdo4EXWWenEo4Rzw4msGiO8wlzQP+Ng0JutazXEetxFaR/qvlEQ+u8IjfaYq+Gl5O19rkNfC/ofHGP/Ps523f2ESEt245Kp5UCmKUudwbudoUrCEiXBVBxC5RiO0sKtWHFv2UibNFFts30KtvU223oShkN37YeOUDfU5XfL6nEy1Mhx87didSP0LUdCsWMNrFP3ejEuiR7pYyln5afob+R9yn4LFAD/AABxpFl+H1QlAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIxLTA4LTI2VDA4OjMzOjMwKzAwOjAwM+HvGAAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMS0wOC0yNlQwODozMzozMCswMDowMEK8V6QAAAAASUVORK5CYII=</se:InlineContent> <se:Format>image/png</se:Format> </se:ExternalGraphic> </se:Graphic> </se:PointSymbolizer> </se:Rule> </se:FeatureTypeStyle> </UserStyle> </UserLayer> </StyledLayerDescriptor>' Thanks and best regards Christian _______________________________________________ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users